Add c-mode to semantic-inhibit-functions, change add-to-list to setq

This commit is contained in:
Adam Goldsmith 2017-06-01 19:00:40 -04:00
parent 73ecbcd2c3
commit e58e2d72d6
1 changed files with 2 additions and 2 deletions

View File

@ -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)))