From 7ba4b1bbd254567f13a39340a0889aa3c7a33730 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Wed, 13 Jul 2022 09:43:00 -0500 Subject: [PATCH] adding a find other file to c++-mode --- README.org | 6 +++++- init.el | 23 ++++++++++++++++++++++- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index fc83a380..15154a74 100644 --- a/README.org +++ b/README.org @@ -488,7 +488,11 @@ This evil-collection package includes a lot of other evil based things. (general-def 'normal Info-mode-map "RET" 'Info-follow-nearest-node "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 #+begin_src emacs-lisp diff --git a/init.el b/init.el index 44709fc8..1db07e4b 100644 --- a/init.el +++ b/init.el @@ -296,7 +296,11 @@ (general-def 'normal Info-mode-map "RET" 'Info-follow-nearest-node "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 :after evil @@ -2268,3 +2272,20 @@ interfere with the default `bongo-playlist-buffer'." gcmh-verbose nil)) (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"))))