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

View File

@ -128,8 +128,8 @@
semantic-idle-scheduler-idle-time 0.2) semantic-idle-scheduler-idle-time 0.2)
; inhibit semantic outside of specific modes ; inhibit semantic outside of specific modes
(add-to-list 'semantic-inhibit-functions (setq semantic-inhibit-functions
#'(lambda () (not (member major-mode '(cc-mode java-mode))))) #'(lambda () (not (member major-mode '(c-mode cc-mode java-mode)))))
(eval-after-load "cc-mode" (eval-after-load "cc-mode"
'(define-key c-mode-map (kbd "M-.") 'semantic-ia-fast-jump))) '(define-key c-mode-map (kbd "M-.") 'semantic-ia-fast-jump)))