dotfiles/emacs/.emacs.d/config/init-ide.el

28 lines
675 B
EmacsLisp
Raw Normal View History

2021-02-20 19:57:40 +00:00
;; IDE features
;; Company-mode provides inline autocompletion
(use-package company
:hook (after-init . global-company-mode))
;; Flycheck gives you error squigglies
(use-package flycheck
:hook (after-init . global-flycheck-mode)
:custom
(flycheck-disabled-checkers '(emacs-lisp-checkdoc emacs-lisp)))
;; Quick file overview for supported modes
(use-package imenu
:straight (:type built-in)
:general
(leader-map "m" #'imenu))
;; Find definition/references
(use-package xref
:straight (:type built-in)
:general
(normal "M-." #'xref-find-definitions)
(normal "M-," #'xref-pop-marker-stack)
(normal "M-r" #'xref-find-references))
(provide 'init-ide)