dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 0de444bb05411719aa67bc8548448a4a3b640517
parent 8d0cd3c6161de7e151afdb3fa7b8f9e4ba8491a3
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Sat,  2 Oct 2021 19:40:32 +0200

emacs: messing around with indentation settings

Diffstat:
Memacs/config.org | 20+++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/emacs/config.org b/emacs/config.org @@ -463,16 +463,34 @@ Disable fill mode in Markdown (add-hook 'markdown-mode-hook (lambda () (auto-fill-mode 0) (flyspell-mode 1))) #+end_src +A tab is 8 spaces: + +#+begin_src emacs-lisp +(setq-default tab-width 8) +#+end_src + Never insert tabs with indentation: #+begin_src emacs-lisp (setq-default indent-tabs-mode nil) #+end_src +Allow switching between the two easily: + +#+begin_src emacs-lisp + (defun indent-tabs () + (interactive) + (setq indent-tabs-mode t)) + (defun indent-spaces () + (interactive) + (setq indent-tabs-mode nil)) +#+end_src + Indentation for various modes: #+begin_src emacs-lisp - (setq sh-basic-offset 2) + (setq-default sh-basic-offset 2 + c-basic-offset 4) #+end_src ** Wrapping