From 7eb7f70bdbc7e51d571548796dd41d06a7d22dcf Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sun, 20 Aug 2023 17:41:00 +0100 Subject: (Emacs)~small changes +key bind for normal/motion map in Info to follow nodes easily ~:display record for helpful ~some text in calc-mode ~undo tree saves in the same place as backups ~problems with compilation mode's recompile, evil collection is starting to not work, so bind it myself ~fix :auto-insert record for Makefiles: quote at the end stops it from matching ~org-latex-listings->org-latex-src-block-backend new org mode --- Emacs/.config/emacs/config.org | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'Emacs/.config/emacs') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 03fe716..2251ea0 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1133,7 +1133,8 @@ info pages so I'd like nice navigation options. "k" #'evil-previous-line "l" #'evil-forward-char "H" #'Info-history-back - "L" #'Info-history-forward)) + "L" #'Info-history-forward + "RET" #'Info-follow-nearest-node)) #+end_src ** Display line numbers I don't really like line numbers, I find them similar to [[*Fringes][fringes]] as @@ -1273,7 +1274,7 @@ commands. I replace ~describe-function~, ~describe-variable~ and [remap describe-variable] #'helpful-variable [remap describe-key] #'helpful-key) :display - ("\\*[Hh]elp.*" + ("\\*helpful.*" (display-buffer-at-bottom) (inhibit-duplicate-buffer . t) (window-height . 0.25)) @@ -2060,7 +2061,7 @@ following (and more): - Matrix calculations - Generalised calculus operations - Equation solvers for n-degree multi-variable polynomials -- Embedded mode! +- Embedded mode (check below)! ~calc-mode~ is a calculator system within Emacs that provides a diverse array of mathematical operations. It uses reverse polish @@ -2196,7 +2197,8 @@ would be describing changes... :straight t :hook (after-init-hook . global-undo-tree-mode) :init - (setq undo-tree-auto-save-history t) + (setq undo-tree-auto-save-history t + undo-tree-history-directory-alist backup-directory-alist) :general (leader "u" #'undo-tree-visualize)) @@ -2445,6 +2447,9 @@ Colourising the compilation buffer so ANSI colour codes get computed. "k" #'previous-error "c" #'compile "C" #'recompile) + (nmmap + :keymaps 'compilation-mode-map + "g" #'recompile) :display ("\\*compilation\\*" (display-buffer-at-bottom) @@ -2463,7 +2468,7 @@ change it for C++. #+begin_src emacs-lisp (use-package emacs :auto-insert - (("[mM]akefile'" . "Makefile skeleton") + (("[mM]akefile\\'" . "Makefile skeleton") "" "CC=gcc CFLAGS=-Wall -Wextra -pedantic -ggdb -fsanitize=address @@ -2566,7 +2571,7 @@ for latex fragments. (setq org-format-latex-options '(:foreground default :background default :scale 2 :html-foreground "Black" :html-background "Transparent" :html-scale 1.0 :matchers ("begin" "$1" "$" "$$" "\\(" "\\[")) - org-latex-listings 'minted + org-latex-src-block-backend 'minted org-latex-minted-langs '((emacs-lisp "common-lisp") (ledger "text") (cc "c++") @@ -2906,7 +2911,6 @@ There is no proper PDF viewing without this package. (use-package pdf-tools :mode ("\\.[pP][dD][fF]\\'" . pdf-view-mode) :straight t - :defer t :display ("^.*pdf$" (display-buffer-same-window) -- cgit v1.2.3-13-gbd6f