diff options
| author | yuzu-eva <cafebabe@disroot.org> | 2024-12-23 16:22:03 +0100 |
|---|---|---|
| committer | yuzu-eva <cafebabe@disroot.org> | 2024-12-23 16:22:03 +0100 |
| commit | a03cc58339b65b0a3a2b29f0bce5ae6186c3b939 (patch) | |
| tree | e4d0e67a449361a2dfd6d7fcdca94cf2cae274a2 | |
| parent | 41fd57e69bb952a10a39940f4ba3636e9e7ddf43 (diff) | |
enable global whitespace-mode; enable electric-indent only in prog-modes
| -rw-r--r-- | config.org | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1,4 +1,3 @@ - #+AUTHOR: yuzu-eva #+STARTUP: overview #+LANGUAGE: en @@ -80,6 +79,12 @@ Also using relative line numbers. (column-number-mode 1) #+end_src +*** Enable whitespace-mode + +#+begin_src emacs-lisp + (whitespace-mode 1) +#+end_src + *** Enable prettify symbols #+begin_src emacs-lisp @@ -165,8 +170,9 @@ Set a different color for each matching pair of brackets *** Indentation #+begin_src emacs-lisp + (with-eval-after-load 'electric + (electric-indent-mode -1)) (setq-default indent-tabs-mode nil) - (setq-default electric-indent-inhibit t) (setq backward-delete-char-untabify-method nil) (setq c-default-style "k&r") (setq tab-width 4) @@ -175,6 +181,7 @@ Set a different color for each matching pair of brackets (setq python-indent-offset 4) (setq sgml-basic-offset 4) (setq ruby-indent-level 4) + (add-hook 'prog-mode-hook 'electric-indent-local-mode) #+end_src *** Change yes/no prompt to just y/n |
