Remove obsolete usage of semantic-mode

I have only used it for imenu support in Org mode and init.el, but this seems to
work without semantic as well.
This commit is contained in:
Daniel - 2022-05-22 18:09:31 +02:00
parent b9d991425f
commit 64b5310853
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 0 additions and 25 deletions

25
init.el
View File

@ -125,7 +125,6 @@
eyebrowse-mode
projectile-mode
yas-global-mode
semantic-mode
global-git-commit-mode))
(with-demoted-errors "Cannot activate mode: %s"
(funcall mode +1)))
@ -1389,30 +1388,6 @@
:commands (page-break-lines-mode)
:diminish page-break-lines-mode)
(use-package semantic
:commands (semantic-mode)
:init (progn
(setq semantic-default-submodes
'(global-semantic-idle-scheduler-mode
global-semanticdb-minor-mode))
;; Disable global key bindings as we are not using them;
;; cf. https://emacs.stackexchange.com/questions/32389/how-do-you-disable-all-keybinding-for-a-package
(setq semantic-mode-map (make-sparse-keymap)))
:config (progn
(require 'semantic/ia)
(require 'semantic/bovine/el)
;; recognize `use-package' as include statement; the function seems
;; to have to be a byte-compiled function, for otherwise it just
;; wont work … ?
(eval `(semantic-elisp-setup-form-parser
,(lambda (form start end)
(ignore start end)
(semantic-tag-new-include (symbol-name (nth 1 form))
nil))
use-package))))
(use-package flycheck
:ensure t
:commands (global-flycheck-mode flycheck-mode)