commit 68a647efe73adee987174286d49b57048cb04c90
parent 4f28b399b07293aa9dd69d7d2f9a759dee42f21d
Author: Alex Balgavy <alex@balgavy.eu>
Date: Sat, 7 May 2022 11:47:15 +0200
emacs: misc settings
Diffstat:
1 file changed, 22 insertions(+), 0 deletions(-)
diff --git a/emacs/config.org b/emacs/config.org
@@ -982,6 +982,17 @@ A better replacement for DocView:
(pdf-tools-install)
#+end_src
+Save position and jump back:
+
+#+begin_src emacs-lisp
+ (define-key pdf-view-mode-map (kbd "C-SPC")
+ (lambda () (interactive) (message "Position saved") (pdf-view-position-to-register ?x)))
+ (define-key pdf-view-mode-map (kbd "C-u C-SPC")
+ (lambda () (interactive) (pdf-view-jump-to-register ?x)))
+#+end_src
+
+*** TODO this clobbers register x. Find a way to not clobber a register
+
** virtualenvwrapper
Like virtualenvwrapper.sh, but for Emacs.
@@ -998,6 +1009,13 @@ Like virtualenvwrapper.sh, but for Emacs.
(use-package org-noter)
#+end_src
+Fix disabling of line wrap by no-opping set-notes-scroll:
+
+#+begin_src emacs-lisp
+ (defun za/no-op (&rest args))
+ (advice-add 'org-noter--set-notes-scroll :override 'za/no-op)
+#+end_src
+
** hl-todo
I want to highlight TODO keywords in comments:
@@ -1198,6 +1216,10 @@ I want to hide certain modes from the modeline, they're always on:
(mapc (lambda (mode-name) (diminish mode-name)) modes-to-hide))
(diminish 'view-mode " 👓"))
#+end_src
+*** Transparent title bar
+#+begin_src emacs-lisp
+ (add-to-list 'default-frame-alist '(ns-transparent-titlebar . t))
+#+end_src
*** Tab bar
Only show tab bar if there's more than 1 tab: