about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-02-25 17:46:35 -0600
committerCase Duckworth2021-02-25 17:46:35 -0600
commit9b38531f1d3ce984b58d5b1ed394b78792479f0d (patch)
tree770ddef0b8d6d616a272ccfdc985b77ec0e11926
parentAdd `org-html-coding-system' to the utf-8-unix train (diff)
downloademacs-9b38531f1d3ce984b58d5b1ed394b78792479f0d.tar.gz
emacs-9b38531f1d3ce984b58d5b1ed394b78792479f0d.zip
Use TABs and Smart-Tabs
-rw-r--r--config.org30
1 files changed, 25 insertions, 5 deletions
diff --git a/config.org b/config.org index 4fe6c25..f68f3e9 100644 --- a/config.org +++ b/config.org
@@ -1466,13 +1466,24 @@ enabled).
1466 (add-hook 'before-save-hook #'whitespace-cleanup) 1466 (add-hook 'before-save-hook #'whitespace-cleanup)
1467#+end_src 1467#+end_src
1468 1468
1469*** Don't use TABs 1469*** USE TABs
1470 1470
1471I was team TAB for a while, but I find them easier to avoid in Emacs. 1471I love TABs. They're great. I want to use them, dag nab it. Emacs sometimes
1472It manages my whitespace for me, anyway. 1472makes that harder than it should be, but let's start at the basics.
1473 1473
1474#+begin_src emacs-lisp :noweb-ref settings 1474#+begin_src emacs-lisp :noweb-ref settings
1475 (setq-default indent-tabs-mode nil) 1475 (setq-default indent-tabs-mode t
1476 tab-width 8)
1477#+end_src
1478
1479**** Smart tabs :package:
1480
1481#+begin_src emacs-lisp :noweb-ref packages
1482 (straight-use-package 'smart-tabs-mode)
1483#+end_src
1484
1485#+begin_src emacs-lisp :noweb-ref modes
1486 (smart-tabs-insinuate 'c 'c++ 'java 'javascript 'cperl 'python 'ruby 'nxml)
1476#+end_src 1487#+end_src
1477 1488
1478**** TODO smart-tabs-mode 1489**** TODO smart-tabs-mode
@@ -1887,7 +1898,16 @@ Since aggressive indenting takes care of tabs, I can use =<TAB>= to complete
1887things! 1898things!
1888 1899
1889#+begin_src emacs-lisp :noweb-ref settings 1900#+begin_src emacs-lisp :noweb-ref settings
1890 (setq-default tab-always-indent 'complete) 1901 (setq-default tab-always-indent nil)
1902#+end_src
1903
1904*** Reformatter :package:
1905
1906Steve Purcell's automatic reformatting tool.
1907
1908#+begin_src emacs-lisp :noweb-ref packages
1909 (straight-use-package 'reformatter)
1910 (require 'reformatter)
1891#+end_src 1911#+end_src
1892 1912
1893** Typesetting 1913** Typesetting