style: misc style edits

This commit is contained in:
Kiana Sheibani 2024-11-14 00:56:20 -05:00
parent 8dbed6bdba
commit 710286b154
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -1163,7 +1163,7 @@ It wouldn't be Emacs if there wasn't an endless list of config variables to chan
scroll-margin 2 ; A few extra lines on each end of the window scroll-margin 2 ; A few extra lines on each end of the window
) )
(global-subword-mode 1) (global-subword-mode +1)
#+end_src #+end_src
** Personal Information ** Personal Information
@ -2098,11 +2098,11 @@ Having an IDE-style tooltip pop up is nice, but ~flymake-popon~ is a bit ugly by
** Git ** Git
#+call: confpkg("Pkg: magit") #+call: confpkg("Pkg: git")
I use GPG signing for commits, which means that committing often takes longer than the single second timeout. Eight seconds seems like a reasonable amount of time to type in a password. I use GPG signing for commits, which means that committing often takes longer than the single second timeout. Eight seconds seems like a reasonable amount of time to type in a password.
Let's also increase the maximum length of commit summaries past the default of 50 characters, because that's a very restrictive limit. Let's also increase the maximum length of commit summaries past the default of 50 characters, because that's a somewhat restrictive limit.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(after! git-commit (after! git-commit
@ -2595,6 +2595,7 @@ Calc doesn't use faces to show selections by default, which I think is rather st
(setq calc-window-height 13 ; Make window taller (setq calc-window-height 13 ; Make window taller
calc-angle-mode 'rad ; Default to radians calc-angle-mode 'rad ; Default to radians
calc-symbolic-mode t ; Symbolic evaluation calc-symbolic-mode t ; Symbolic evaluation
calc-kill-line-numbering nil ; Don't copy stack position numbers
)) ))
#+end_src #+end_src
@ -2944,7 +2945,8 @@ It's sometimes nice to be able to click a link in an Org file that takes me to o
("bbZ" "\\mathbb{Z}" t "" "" "2124" "") ("bbZ" "\\mathbb{Z}" t "" "" "2124" "")
("bbQ" "\\mathbb{Q}" t "" "" "211A" "") ("bbQ" "\\mathbb{Q}" t "" "" "211A" "")
("bbR" "\\mathbb{R}" t "" "" "211D" "") ("bbR" "\\mathbb{R}" t "" "" "211D" "")
("qed" "\\square" t "" "" "25A0" "■")))) ("qed" "\\square" t "" "" "2B1C" "⬜")
("sqrt" "\\sqrt" t "" "" "221A" "√"))))
#+end_src #+end_src
*** Modern *** Modern
@ -3211,7 +3213,9 @@ If nil, then use the current time.")
(lambda (&optional time) (funcall float-time-old (or time org-todo-time)))) (lambda (&optional time) (funcall float-time-old (or time org-todo-time))))
(time-subtract-old (symbol-function #'time-subtract)) (time-subtract-old (symbol-function #'time-subtract))
((symbol-function #'time-subtract) ((symbol-function #'time-subtract)
(lambda (a b) (funcall time-subtract-old (or a org-todo-time) (or b org-todo-time)))) (lambda (a b) (funcall time-subtract-old
(or a org-todo-time)
(or b org-todo-time))))
(decode-time-old (symbol-function #'decode-time)) (decode-time-old (symbol-function #'decode-time))
((symbol-function #'decode-time) ((symbol-function #'decode-time)
(lambda (&optional time &rest args) (lambda (&optional time &rest args)
@ -3480,7 +3484,7 @@ If on a:
When an explicit category is not specified, Org mode typically defaults to the filename (sans extension). This ... sort of makes sense? I guess? It doesn't really, because filename conventions don't make for good agenda category names. I want my category names to be in title case, whereas a file name is typically going to be all lowercase and without spaces. This is especially bad for Org-roam, where filenames are automatically generated and way too long to be a UI element. When an explicit category is not specified, Org mode typically defaults to the filename (sans extension). This ... sort of makes sense? I guess? It doesn't really, because filename conventions don't make for good agenda category names. I want my category names to be in title case, whereas a file name is typically going to be all lowercase and without spaces. This is especially bad for Org-roam, where filenames are automatically generated and way too long to be a UI element.
To fix this issue, it's thankfully rather simple to patch Org-mode's category system. The following code sets things up so that the file's =#+title= metadata is used as the default category, falling back on the default behavior if a title is not given. To fix this issue, it's thankfully rather simple to patch Org-mode's metadata system. The following code sets things up so that the file's =#+title= metadata is used as the default category, falling back on the default behavior if a title is not given.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(defadvice! ~/org-default-category (old-fn) (defadvice! ~/org-default-category (old-fn)
@ -4113,7 +4117,7 @@ it defaults to `project-current'."
**** Window Numbering **** Window Numbering
If a side session is open, we'll configure =winum= to record it as having the index ~(popup . 0)~, i.e. the 0th popup window. It's not actually a popup, but this is the easiest way to separate it from the "main" windows. If a side session is open, we'll configure =winum= to give it the index ~(popup . 0)~, i.e. the 0th popup window. It's not actually a popup, since the popup system's window management clashes with =dirvish='s, but it's convenient to treat it as one.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(after! (winum dirvish-side) (after! (winum dirvish-side)