From e933755d101bd54376085411ee84c2273096a870 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 30 Jun 2023 10:22:14 -0500 Subject: [PATCH] adding some tweaks to emacs setup Fixed so emacs runs appropriate system reconfigure --- README.org | 9 +++++++-- init.el | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index d0a581b6..83092b56 100644 --- a/README.org +++ b/README.org @@ -184,6 +184,9 @@ Also, real quick let's make sure that ~~ works as the same as ~~ Let's also turn on =recentf-mode=. #+begin_src emacs-lisp (recentf-mode +1) +(savehist-mode +1) +(add-to-list savehist-additional-variables 'register-alist) +(add-to-list savehist-additional-variables kill-ring) #+end_src Finally this is not part of the UI but let's do this early and start the server so I can use emacsclient from my WM. @@ -537,6 +540,7 @@ This evil-collection package includes a lot of other evil based things. "oP" '(proced :which-key "proced") "ov" '(vterm :which-key "vterm") "wo" '(other-window :which-key "other window") + "wn" '(evil-window-next :which-key "other window") "wd" '(delete-window :which-key "other window") "wv" '(evil-window-vsplit :which-key "split window vertically") "ws" '(evil-window-split :which-key "split window horizontally") @@ -611,7 +615,7 @@ Let's start by creating a self contained function of what I'd like started on ev (setq lpr-command "lpr -o sides=two-sided-long-edge -# ") (defun chris/org-mode-setup () (interactive) - (org-indent-mode +1) + ;; (org-indent-mode +1) (toc-org-mode +1) (visual-fill-column-mode +1) (display-line-numbers-mode -1) @@ -3814,7 +3818,8 @@ Let's add our own eshell prompt. and set the password cache to a significantly h "oe" 'chris/eshell-new "be" 'eshell) (general-def '(normal insert) eshell-mode-map - "C-d" 'kill-buffer-and-window)) + "C-d" 'kill-buffer-and-window + "" 'eshell-previous-input)) #+end_src *** EAT diff --git a/init.el b/init.el index 1ab44d2e..32a95e76 100644 --- a/init.el +++ b/init.el @@ -82,6 +82,9 @@ (global-set-key (kbd "") 'keyboard-escape-quit) (recentf-mode +1) +(savehist-mode +1) +(add-to-list savehist-additional-variables 'register-alist) +(add-to-list savehist-additional-variables kill-ring) (add-to-list 'exec-path "/home/chris/bin") @@ -289,6 +292,7 @@ "oP" '(proced :which-key "proced") "ov" '(vterm :which-key "vterm") "wo" '(other-window :which-key "other window") + "wn" '(evil-window-next :which-key "other window") "wd" '(delete-window :which-key "other window") "wv" '(evil-window-vsplit :which-key "split window vertically") "ws" '(evil-window-split :which-key "split window horizontally") @@ -353,7 +357,7 @@ (setq lpr-command "lpr -o sides=two-sided-long-edge -# ") (defun chris/org-mode-setup () (interactive) - (org-indent-mode +1) + ;; (org-indent-mode +1) (toc-org-mode +1) (visual-fill-column-mode +1) (display-line-numbers-mode -1) @@ -2790,7 +2794,8 @@ targets." "oe" 'chris/eshell-new "be" 'eshell) (general-def '(normal insert) eshell-mode-map - "C-d" 'kill-buffer-and-window)) + "C-d" 'kill-buffer-and-window + "" 'eshell-previous-input)) (add-hook 'eshell-load-hook #'eat-eshell-mode)