Updated white space to use spaces not tabs

This commit is contained in:
Random936
2025-08-02 14:03:38 -07:00
parent 9c09854b02
commit fb1d7bb4ce
2 changed files with 11 additions and 1 deletions

View File

@@ -53,7 +53,15 @@ Remap quit command to make it easier to rescue a buffer. With this function, esc
(global-set-key (kbd "<escape>") 'keyboard-escape-quit) (global-set-key (kbd "<escape>") 'keyboard-escape-quit)
#+end_src #+end_src
** Visualizing White Space ** White Space
Use spaces instead of tabs and set tab-width.
#+begin_src elisp
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(setq-default evil-shift-width tab-width)
#+end_src
Add a nice visualization for tabs and spaces. This can be helpful to identify which is which quickly to avoid submitting poorly spaced code. Add a nice visualization for tabs and spaces. This can be helpful to identify which is which quickly to avoid submitting poorly spaced code.
@@ -364,5 +372,7 @@ Load other files:
#+begin_src elisp #+begin_src elisp
(jm/load-config-if-exists "~/.emacs.d/functions.org") ; Personal Elisp Functions (jm/load-config-if-exists "~/.emacs.d/functions.org") ; Personal Elisp Functions
(jm/load-config-if-exists "~/.emacs.d/org.org") ; Org-mode (jm/load-config-if-exists "~/.emacs.d/org.org") ; Org-mode
(jm/load-config-if-exists "~/.emacs.d/dired.org") ; Dired Config
(jm/load-config-if-exists "~/.emacs.d/lsp.org") ; Language Server Protocol (jm/load-config-if-exists "~/.emacs.d/lsp.org") ; Language Server Protocol
(jm/load-config-if-exists "~/.emacs.d/erc.org") ; Emacs IRC Client Config
#+end_src #+end_src