From 8f0cb2ab5ca53a6f6767e41cfddca9c41dee8af2 Mon Sep 17 00:00:00 2001 From: Able Date: Tue, 3 Dec 2024 10:37:11 -0600 Subject: [PATCH] better bindings mostly --- config.el | 44 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/config.el b/config.el index 223b610..7a67348 100644 --- a/config.el +++ b/config.el @@ -1,19 +1,53 @@ -(setq doom-theme 'doom-one) +;;;;;;;;;;;;;;;;;;;; +;; File Locations ;; +;;;;;;;;;;;;;;;;;;;; - -(setq display-line-numbers-type t) (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 'scroll-bar-mode) (scroll-bar-mode 1)) (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)