From 5763a09a040221c887d8910ee8dc8542c237c10a Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Sun, 18 Dec 2022 13:17:02 +0700 Subject: [PATCH] Hopefully final changes to Jetbrains/Emacs --- .config/emacs/init.org | 17 +++++++++++------ .ideavimrc | 7 ++++--- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.config/emacs/init.org b/.config/emacs/init.org index 968e71f..309e6e8 100644 --- a/.config/emacs/init.org +++ b/.config/emacs/init.org @@ -558,6 +558,7 @@ The theme of `C-x 4` bindings is that they operate on other windows, so this fun "^\\*Flymake.*" flymake-mode "^\\*Flycheck.*" flycheck-error-list-mode "^\\*lsp-help\\*" lsp-help-mode + "^\\*cargo-test\\*" cargo-test-mode ;; "^\\*ansi-term\\*$" term-mode ("^\\*Warnings\\*$" . hide) help-mode @@ -1025,6 +1026,7 @@ startup. Reason we have to call this is so the vterm fucntion can call `vterm--i (define-key company-active-map (kbd "C-p") nil) (define-key company-active-map (kbd "") nil) (define-key company-active-map (kbd "RET") nil) + (define-key company-active-map (kbd "M-d") #'company-show-doc-buffer) (define-key company-active-map (kbd "C-f") #'company-complete-selection) (define-key company-active-map [tab] #'company-complete-common-or-cycle) (define-key company-active-map (kbd "") (lambda () (interactive) (company-complete-common-or-cycle -1))) @@ -1105,13 +1107,16 @@ startup. Reason we have to call this is so the vterm fucntion can call `vterm--i *** Rust #+begin_src emacs-lisp (straight-use-package 'rustic) -(straight-use-package 'parsec) ;; Required by evcxr-mode +;; Disabling until we figure out how to get it working +;; (straight-use-package 'parsec) ;; Required by evcxr-mode -(straight-use-package - '(evcxr - :type git - :host github - :repo "serialdev/evcxr-mode")) +;; (straight-use-package +;; '(evcxr +;; :type git +;; :host github +;; :repo "serialdev/evcxr-mode")) + +(add-hook 'rust-mode-hook (lambda () (electric-pair-local-mode))) (add-hook 'rust-mode-hook (lambda () diff --git a/.ideavimrc b/.ideavimrc index 3af7940..7678b5a 100755 --- a/.ideavimrc +++ b/.ideavimrc @@ -44,7 +44,6 @@ vnoremap > >gv map gt (GotoTypeDeclaration) map f (FindInPath) -map (ToggleDistractionFreeMode) map (EditorIncreaseFontSize) map (EditorDecreaseFontSize) map (EditorResetFontSize) @@ -75,8 +74,8 @@ noremap 2 map h (HideAllWindows) map q (CloseContent) -map d (QuickImplementations) -map t (QuickJavaDoc) +" map t (QuickImplementations) +map d (QuickJavaDoc) map e (ShowErrorDescription) map u (FindUsages) map rn (RenameElement) @@ -87,6 +86,8 @@ map bc (RunClass) map bd (Debug) map bs (BuildSolutionAction) map ; :actionlist +map th (ToggleInlayHintsGloballyAction) +map td (ToggleDistractionFreeMode) map w (SaveDocument) map or (ManageRecentProjects)