ablemacs/config.el
2024-12-03 10:37:11 -06:00

54 lines
1.2 KiB
EmacsLisp

;;;;;;;;;;;;;;;;;;;;
;; 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)
;; Prevent backspace from turning a tab character into 4 spaces.
(setq backward-delete-char-untabify-method nil)
;;;;;;;;;;;;;;;;;;;;;
;; Display Options ;;
;;;;;;;;;;;;;;;;;;;;;
;; This theme is inspired by the atom one dark theme
(setq doom-theme 'doom-one)
;; Display line numbers the normal way.
(setq display-line-numbers-type t)
;; Display time in specific formats.
(setq display-time-24hr-format 1)
(setq display-time-day-and-date 1)
;; Enable diplaying time
(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)
;; Start emacs maximized.
(add-hook 'window-setup-hook #'toggle-frame-maximized)
;; Set tab width, Doesn't seem to work :( ;;
(setq-default tab-width 1)