ablemacs/config.el

54 lines
1.2 KiB
EmacsLisp
Raw Normal View History

2024-12-03 10:37:11 -06:00
;;;;;;;;;;;;;;;;;;;;
;; File Locations ;;
;;;;;;;;;;;;;;;;;;;;
(setq org-directory "~/org-mode/")
;;;;;;;;;;;;;;;;;
;; Keybindings ;;
;;;;;;;;;;;;;;;;;
;; Cut/paste like a normal human being.
(cua-mode 1)
;; Tab key binding.
(global-set-key (kbd "TAB") #'self-insert-command)
;; Spam Ctrl + s to save.
(global-set-key (kbd "C-s") 'save-buffer)
2024-12-02 23:41:35 -06:00
2024-12-03 10:37:11 -06:00
;; Prevent backspace from turning a tab character into 4 spaces.
(setq backward-delete-char-untabify-method nil)
2024-12-02 23:41:35 -06:00
2024-12-03 10:37:11 -06:00
;;;;;;;;;;;;;;;;;;;;;
;; Display Options ;;
;;;;;;;;;;;;;;;;;;;;;
;; This theme is inspired by the atom one dark theme
(setq doom-theme 'doom-one)
;; Display line numbers the normal way.
2024-12-02 23:41:35 -06:00
(setq display-line-numbers-type t)
2024-12-03 10:37:11 -06:00
;; Display time in specific formats.
2024-12-02 23:41:35 -06:00
(setq display-time-24hr-format 1)
(setq display-time-day-and-date 1)
2024-12-03 10:37:11 -06:00
;; Enable diplaying time
2024-12-02 23:41:35 -06:00
(display-time-mode 1)
;; Restore the menu bar because doom-emacs disables it.
(defun restore-menu-bar()
(interactive)
(if (fboundp 'tool-bar-mode) (tool-bar-mode 1))
(if (fboundp 'menu-bar-mode) (menu-bar-mode 1)))
(restore-menu-bar)
2024-12-03 10:37:11 -06:00
;; Start emacs maximized.
(add-hook 'window-setup-hook #'toggle-frame-maximized)
;; Set tab width, Doesn't seem to work :( ;;
(setq-default tab-width 1)