adding a find other file to c++-mode

This commit is contained in:
Chris Cochrun 2022-07-13 09:43:00 -05:00
parent 5178cf2ae1
commit 7ba4b1bbd2
2 changed files with 27 additions and 2 deletions

View file

@ -488,7 +488,11 @@ This evil-collection package includes a lot of other evil based things.
(general-def 'normal Info-mode-map (general-def 'normal Info-mode-map
"RET" 'Info-follow-nearest-node "RET" 'Info-follow-nearest-node
"p" 'Info-prev "p" 'Info-prev
"n" 'Info-next)) "n" 'Info-next)
(general-def 'normal c++-mode-map
:states 'normal
:keymaps 'override
"go" 'ff-find-other-file))
#+end_src #+end_src
#+begin_src emacs-lisp #+begin_src emacs-lisp

23
init.el
View file

@ -296,7 +296,11 @@
(general-def 'normal Info-mode-map (general-def 'normal Info-mode-map
"RET" 'Info-follow-nearest-node "RET" 'Info-follow-nearest-node
"p" 'Info-prev "p" 'Info-prev
"n" 'Info-next)) "n" 'Info-next)
(general-def 'normal c++-mode-map
:states 'normal
:keymaps 'override
"go" 'ff-find-other-file))
(use-package evil-escape (use-package evil-escape
:after evil :after evil
@ -2268,3 +2272,20 @@ interfere with the default `bongo-playlist-buffer'."
gcmh-verbose nil)) gcmh-verbose nil))
(setq warning-suppress-types '((comp))) (setq warning-suppress-types '((comp)))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(pdf-misc-print-program "/usr/bin/lpr")
'(pdf-misc-print-program-args '("-o media=Letter" "-o fitplot"))
'(safe-local-variable-values
'((aggressive-indent-mode)
(projectile-project-run-cmd . "./build/bin/presenter")
(projectile-project-compilation-cmd . "cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -B build/ . && make --dir build/"))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(org-modern-tag ((t :background "#9aedfe" :foreground "#282a36"))))