From e58e2d72d68c3ac7a0b65564143d51ed26489da5 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 1 Jun 2017 19:00:40 -0400 Subject: [PATCH] Add c-mode to semantic-inhibit-functions, change add-to-list to setq --- .emacs.d/init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index b111fae..1f1bae2 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -128,8 +128,8 @@ semantic-idle-scheduler-idle-time 0.2) ; inhibit semantic outside of specific modes - (add-to-list 'semantic-inhibit-functions - #'(lambda () (not (member major-mode '(cc-mode java-mode))))) + (setq semantic-inhibit-functions + #'(lambda () (not (member major-mode '(c-mode cc-mode java-mode))))) (eval-after-load "cc-mode" '(define-key c-mode-map (kbd "M-.") 'semantic-ia-fast-jump)))