From ff2ae5c92e05ce7cc0abba8188625727d445916b Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 10 Jun 2024 14:34:47 +0100 Subject: [PATCH] Enable org pretty entities, use view-mode in read only buffers Remap upcase and downcase commands to dwim variants --- init.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/init.el b/init.el index 67c000a..6c9e5ee 100644 --- a/init.el +++ b/init.el @@ -68,6 +68,10 @@ ;; Make shebang (#!) file executable when saved (add-hook 'after-save-hook #'executable-make-buffer-file-executable-if-script-p) +;; Remap `upcase-word' and `downcase-word' to DWIM versions +(keymap-global-set " " 'upcase-dwim) +(keymap-global-set " " 'downcase-dwim) + (setq backup-directory-alist '(("." . "~/.local/state/emacs/backups"))) (savehist-mode +1) @@ -225,12 +229,6 @@ "Pulse the current line." (pulse-momentary-highlight-one-line (point))) -(dolist (command '(scroll-up-command - scroll-down-command - recenter-top-bottom - other-window)) - (advice-add command :after #'pulse-line)) - (use-package base16-theme :demand :defines (base16-one-light-theme-colors @@ -392,6 +390,7 @@ (org-directory "~/Documents/org") (org-default-notes-file (expand-file-name "notes.org" org-directory)) (org-hide-emphasis-markers nil) + (org-pretty-entities t) (org-pretty-entities-include-sub-superscripts t) (org-fontify-done-headline t) (org-fontify-todo-headline t) @@ -1041,6 +1040,7 @@ Calls `project-remember-projects-under' for ~/Projects/" (use-package files :custom + (view-read-only t) (enable-remote-dir-locals t)) (use-package tramp