From: Peng Li Date: Tue, 12 Sep 2017 03:56:51 +0000 (+0800) Subject: disable tab for c mode X-Git-Url: http://47.100.26.94:8080/?a=commitdiff_plain;ds=sidebyside;h=3dcb38688ed119fc3124d46fc097486c6c217272;p=dotfiles.git disable tab for c mode --- diff --git a/emacs.d/emacs-evil.org b/emacs.d/emacs-evil.org index 352c08f..6ad4ee6 100644 --- a/emacs.d/emacs-evil.org +++ b/emacs.d/emacs-evil.org @@ -147,6 +147,11 @@ Let the search highlight persistent, https://stackoverflow.com/questions/2576803 :config (global-evil-visualstar-mode)) #+END_SRC +* Others +#+BEGIN_SRC emacs-lisp :tangle yes :results silent + (dolist (mode '(c-mode-hook lua-mode-hook)) + (add-hook mode (lambda () (setq indent-tabs-mode nil)))) +#+END_SRC * Provide #+BEGIN_SRC emacs-lisp :tangle yes :results silent (provide 'init-evil-mode)