From 710286b154dc804d675169fbbb4ef32164b9c8ef Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Thu, 14 Nov 2024 00:56:20 -0500 Subject: [PATCH] style: misc style edits --- config.org | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/config.org b/config.org index 0eb05d4..4555669 100644 --- a/config.org +++ b/config.org @@ -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 ) -(global-subword-mode 1) +(global-subword-mode +1) #+end_src ** Personal Information @@ -2098,11 +2098,11 @@ Having an IDE-style tooltip pop up is nice, but ~flymake-popon~ is a bit ugly by ** 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. -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 (after! git-commit @@ -2592,9 +2592,10 @@ Calc doesn't use faces to show selections by default, which I think is rather st #+begin_src emacs-lisp (after! calc - (setq calc-window-height 13 ; Make window taller - calc-angle-mode 'rad ; Default to radians - calc-symbolic-mode t ; Symbolic evaluation + (setq calc-window-height 13 ; Make window taller + calc-angle-mode 'rad ; Default to radians + calc-symbolic-mode t ; Symbolic evaluation + calc-kill-line-numbering nil ; Don't copy stack position numbers )) #+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" "ℤ") ("bbQ" "\\mathbb{Q}" t "" "" "211A" "ℚ") ("bbR" "\\mathbb{R}" t "" "" "211D" "ℝ") - ("qed" "\\square" t "" "" "25A0" "■")))) + ("qed" "\\square" t "" "" "2B1C" "⬜") + ("sqrt" "\\sqrt" t "" "" "221A" "√")))) #+end_src *** Modern @@ -3211,7 +3213,9 @@ If nil, then use the current time.") (lambda (&optional time) (funcall float-time-old (or time org-todo-time)))) (time-subtract-old (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)) ((symbol-function #'decode-time) (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. -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 (defadvice! ~/org-default-category (old-fn) @@ -4113,7 +4117,7 @@ it defaults to `project-current'." **** 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 (after! (winum dirvish-side)