emacs: use new setq-local syntax

master
an 2020-02-15 21:49:50 -05:00
parent 2010675d9a
commit f3b8fea572
1 changed files with 10 additions and 10 deletions

View File

@ -22,22 +22,22 @@
(defun agw-prog-mode () (defun agw-prog-mode ()
"Sets up `prog-mode'." "Sets up `prog-mode'."
(setq-local tab-always-indent nil) (setq-local tab-always-indent nil
(setq-local tab-width 3) tab-width 3
(setq-local standard-indent 3) standard-indent 3
(setq-local indent-tabs-mode t)) indent-tabs-mode t))
(defun agw-fp-mode () (defun agw-fp-mode ()
"Sets up lisp and other functional language major modes." "Sets up lisp and other functional language major modes."
(setq-local indent-tabs-mode nil) (setq-local indent-tabs-mode nil
(setq-local standard-indent 2) standard-indent 2
(setq-local tab-width 2)) tab-width 2))
(defun agw-org-mode () (defun agw-org-mode ()
"Sets up `org-mode'." "Sets up `org-mode'."
(setq-local indent-tabs-mode nil) (setq-local indent-tabs-mode nil
(setq-local standard-indent 2) standard-indent 2
(setq-local tab-width 2)) tab-width 2))
(defun agw-remove-elc () (defun agw-remove-elc ()
"Removes an elc file if it exists." "Removes an elc file if it exists."