From e2ae7b07361893d00e6fc0c72060dcb71e2b391c Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Thu, 13 Jun 2024 18:04:35 -0400 Subject: [PATCH] Prose edits --- config.org | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/config.org b/config.org index f6f7f6a..f9114ec 100644 --- a/config.org +++ b/config.org @@ -2004,13 +2004,7 @@ I've found that character-based indent guides work best. #+call: confpkg("Pkg: lsp") -~lsp-mode~ requires ~avy~, but doesn't load it for some reason. - -#+begin_src emacs-lisp -;; (advice-add #'lsp-avy-lens :before (cmd! (require 'avy))) -#+end_src - -Here's a convenient leader key binding as well: +Some more convenient leader key bindings would be nice to prevent having to trawl through the =lsp-command-map=. #+begin_src emacs-lisp (map! :leader @@ -2097,6 +2091,8 @@ I like having ophints for vim editing so that I don't get lost when making large Snippets are a sophisticated method of warding off the scourge of unnecessary keystrokes. They were a bit hard to get used to, but I've warmed up to them over time. +The snippets themselves are stored in separate files, each of which can be found in the =snippets/= subdirectory of this repo. As the ~yasnippet~ package expects, they are grouped by major mode. + *** Tweaks Allow nested snippets: @@ -2824,6 +2820,10 @@ When marking text for =*emphasis*=, Org mode normally only allows emphasized sec (setf (nth 4 org-emphasis-regexp-components) 20)) #+end_src +*** Popups + +Org uses many popup windows for various things, and we can use Doom to make them look a little nicer. + ** Enhancements While Org-mode provides a very comprehensive set of tools and systems, there are a few small things that are missing or that would make the overall UX smoother. Luckily, Org-mode being implemented as an Emacs package gives us more than enough control over its function to crowbar in a few new features! @@ -3282,7 +3282,7 @@ Annoyingly, the only good way to fix these issues is to completely override the 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 is thankfully rather simple to patch Org-mode's category system[fn:2]. 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... "easy" to patch Org-mode's category system[fn:2]. 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) @@ -3293,7 +3293,7 @@ To fix this issue, it is thankfully rather simple to patch Org-mode's category s (funcall old-fn))) #+end_src -[fn:2] Where by "simple" I mean that it took me multiple hours of combing through Org's source code in order to find the multiple places(???) where this behavior was implemented and to figure out how to modify it. At least the final code is short! +[fn:2] It took me multiple hours of combing through Org's source code in order to find the multiple places(???) where this behavior was implemented and to figure out how to modify it. At least the final code is short! ** Org Roam @@ -3823,8 +3823,9 @@ The Doom module is very outdated, so I'll be overriding it. #+begin_src emacs-lisp (after! idris-mode (setq idris-interpreter-path "idris2" - idris-repl-banner-functions - '(idris-repl-text-banner) ; No fun allowed!! + ;; No fun allowed!! + ;; (The animated banner was messing with the popup system) + idris-repl-banner-functions '(idris-repl-text-banner) idris-repl-show-repl-on-startup nil ; Don't show repl on startup ) @@ -3887,7 +3888,7 @@ Since I've started using [[https://github.com/elkowar/eww/tree/master?tab=readme (package! yuck-mode) #+end_src -* Scratch +* Scratch :noexport: #+call: confpkg()