From 770c093d593b0b088e40ce52077dcf63d4a95e89 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Sun, 15 Nov 2026 13:12:46 +0100 Subject: More emacs tweaks after reading a bit in the manual --- .emacs.d/init.el | 3 +++ .emacs.d/init.org | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 2e7f8c8..c5daa07 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -22,6 +22,9 @@ :custom (inhibit-splash-screen t) (initial-buffer-choice "~/org-files/startup.org") + (bookmark-save-flag 1) + (show-trailing-whitespace t) + (x-stretch-cursor t) (completion-eager-display t) (completion-eager-update t) (completion-show-help nil) diff --git a/.emacs.d/init.org b/.emacs.d/init.org index 2df4c43..75d2104 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -41,7 +41,7 @@ Tell it to assume ~:ensure t~ as well. (setq use-package-always-ensure t) #+end_src * Basic configuration -#+begin_src emacs-lisp :tangle "init.el" :noweb yes +#+begin_src emacs-lisp :tangle "init.el" :noweb tangle (use-package emacs :demand t :custom @@ -59,6 +59,10 @@ Use a specific org file as the initial buffer. #+begin_src emacs-lisp :noweb-ref basic-custom (initial-buffer-choice "~/org-files/startup.org") #+end_src +** Bookmarks +#+begin_src emacs-lisp :noweb-ref basic-custom + (bookmark-save-flag 1) +#+end_src ** System-specific setup *** MacOS #+begin_src emacs-lisp :noweb-ref basic-config @@ -98,6 +102,14 @@ Remove the tool bar #+begin_src emacs-lisp :noweb-ref basic-config (tool-bar-mode -1) #+end_src +** Show trailing whitespace +#+begin_src emacs-lisp :noweb-ref basic-custom + (show-trailing-whitespace t) +#+end_src +** Show the cursor as wide as the glyph under it +#+begin_src emacs-lisp :noweb-ref basic-custom + (x-stretch-cursor t) +#+end_src * Minibuffer Customisation of defaults. #+begin_src emacs-lisp :noweb-ref basic-custom @@ -165,7 +177,6 @@ Load support for fossil-scm. (use-package vc-fossil :init (add-to-list 'vc-handled-backends 'Fossil t)) #+end_src - * Automatically tangle the file on # Local Variables: # eval: (add-hook 'after-save-hook #'org-babel-tangle nil t) -- cgit v1.2.3