i don't know what i'm doing with doom
This commit is contained in:
parent
79c0d55060
commit
a0634dc067
1 changed files with 21 additions and 14 deletions
|
@ -54,33 +54,40 @@
|
||||||
;;
|
;;
|
||||||
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
|
;; You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
|
||||||
;; they are implemented.
|
;; they are implemented.
|
||||||
;;
|
|
||||||
|
;; Brag on discord I'm using Emacs
|
||||||
|
(elcord-mode)
|
||||||
|
|
||||||
; START TABS CONFIG
|
; START TABS CONFIG
|
||||||
;; Create a variable for our preferred tab width
|
;; Create a variable for our preferred tab width
|
||||||
(setq custom-tab-width 2)
|
;;(setq custom-tab-width 2)
|
||||||
|
|
||||||
;; Two callable functions for enabling/disabling tabs in Emacs
|
;; Two callable functions for enabling/disabling tabs in Emacs
|
||||||
(defun disable-tabs () (setq indent-tabs-mode nil))
|
;;(defun disable-tabs () (setq indent-tabs-mode nil))
|
||||||
(defun enable-tabs ()
|
;;(defun enable-tabs ()
|
||||||
(local-set-key (kbd "TAB") 'tab-to-tab-stop)
|
;;(local-set-key (kbd "TAB") 'tab-to-tab-stop)
|
||||||
(setq indent-tabs-mode t)
|
;;(setq indent-tabs-mode t)
|
||||||
(setq tab-width custom-tab-width))
|
;;(setq tab-width custom-tab-width))
|
||||||
|
|
||||||
;; Hooks to Enable Tabs
|
;; Hooks to Enable Tabs
|
||||||
(add-hook 'prog-mode-hook 'enable-tabs)
|
;;(add-hook 'prog-mode-hook 'enable-tabs)
|
||||||
;; Hooks to Disable Tabs
|
;; Hooks to Disable Tabs
|
||||||
(add-hook 'lisp-mode-hook 'disable-tabs)
|
;;(add-hook 'lisp-mode-hook 'disable-tabs)
|
||||||
(add-hook 'emacs-lisp-mode-hook 'disable-tabs)
|
;;(add-hook 'emacs-lisp-mode-hook 'disable-tabs)
|
||||||
|
|
||||||
;; Language-Specific Tweaks
|
;; Language-Specific Tweaks
|
||||||
(setq-default python-indent-offset custom-tab-width) ;; Python
|
;;(setq-default python-indent-offset custom-tab-width) ;; Python
|
||||||
(setq-default js-indent-level custom-tab-width) ;; Javascript
|
;;(setq-default js-indent-level custom-tab-width) ;; Javascript
|
||||||
|
|
||||||
;; Making electric-indent behave sanely
|
;; Making electric-indent behave sanely
|
||||||
(setq-default electric-indent-inhibit t)
|
;;(setq-default electric-indent-inhibit t)
|
||||||
|
|
||||||
;; Make the backspace properly erase the tab instead of
|
;; Make the backspace properly erase the tab instead of
|
||||||
;; removing 1 space at a time.
|
;; removing 1 space at a time.
|
||||||
(setq backward-delete-char-untabify-method 'hungry)
|
;;(setq backward-delete-char-untabify-method 'hungry)
|
||||||
; END TABS CONFIG
|
; END TABS CONFIG
|
||||||
|
|
||||||
|
;; I don't like Emacs filling up my system clipboard history
|
||||||
|
(setq select-enable-clipboard nil)
|
||||||
|
|
||||||
|
;; (setq scroll-margin 5)
|
||||||
|
|
Loading…
Reference in a new issue