summaryrefslogtreecommitdiff
path: root/jakob.org
diff options
context:
space:
mode:
authorJakob L. Kreuze2019-01-09 16:55:34 -0500
committerJakob L. Kreuze2019-01-09 16:55:34 -0500
commitea59e95494bb16237e9360badabb527486239269 (patch)
tree4de970247b890aef78a14759c2ea6255480bfd65 /jakob.org
parent4ab68a49c2d207369d1f27aa3bcb77c4bdc6a986 (diff)
Improvements on navigation for org-mode, and a keybinding for clearing the ZNC backlog
Diffstat (limited to 'jakob.org')
-rw-r--r--jakob.org89
1 files changed, 63 insertions, 26 deletions
diff --git a/jakob.org b/jakob.org
index 2a8ebc8..696ad03 100644
--- a/jakob.org
+++ b/jakob.org
@@ -978,21 +978,25 @@ Preference of hygene. See [[Filesystem]].
Only load the =org-contrib= modules that I actually use.
#+BEGIN_SRC elisp
+ :init
(setq org-modules '(org-drill))
#+END_SRC
Some general configurations for quality-of-life and appearance.
#+BEGIN_SRC elisp
+ :init
(setq org-return-follows-link t)
- (setq org-startup-with-inline-images t)
(setq org-startup-folded nil)
+ (setq org-startup-with-inline-images t)
+ (setq org-hide-emphasis-markers t)
(setq org-tags-column 100)
#+END_SRC
Don't indent text following a headline.
#+BEGIN_SRC elisp
+ :init
(setq org-adapt-indentation nil)
#+END_SRC
@@ -1000,6 +1004,7 @@ Fix =org-src= blocks such that <tab> indents according to the mode's indentation
rules, and so that there is no implicit indentation of the source code ([[https://stackoverflow.com/questions/15773354/indent-code-in-org-babel-src-blocks][1]], [[https://emacs.stackexchange.com/questions/9472/org-mode-source-block-doesnt-respect-parent-buffer-indentation][2]]).
#+BEGIN_SRC elisp
+ :init
(setq org-src-tab-acts-natively t)
(setq org-edit-src-content-indentation 0)
#+END_SRC
@@ -1009,7 +1014,20 @@ Scale up embedded LaTeX so that I can actually read it.
#+BEGIN_SRC elisp
:config
(setq org-format-latex-options
- (plist-put org-format-latex-options :scale 1.5)))
+ (plist-put org-format-latex-options :scale 1.5))
+#+END_SRC
+
+Replace my [[Imenu]] binding with =org-goto=, as it allows me to select headings with
+subheadings.
+
+#+BEGIN_SRC elisp
+ :init
+ (setq org-goto-interface 'outline-path-completionp)
+ (setq org-outline-path-complete-in-steps nil)
+
+ :bind
+ (:map org-mode-map
+ ("C-c s" . org-goto)))
#+END_SRC
** Workflow
@@ -1092,7 +1110,8 @@ Rather convoluted agenda setup to show me:
Scan the directory of the current buffer's file for other items -- this is so
that I can spread my cards across multiple files and still be tested on all of
-them when I run =org-drill=.
+them when I run =org-drill=. Combining topic during review sessions is
+recommended by Michael Nielsen in his article, [[http://augmentingcognition.com/ltm.html]["Augmenting Long-term Memory"]].
#+BEGIN_SRC elisp
(setq org-drill-scope 'directory)
@@ -1115,31 +1134,45 @@ items right on the first try. It's unhelpful and really just annoying.
* Gnus
-Preference of hygene. See [[Filesystem]].
+Hide the modeline image. It's large enough to needlessly widen my modeline.
+
+#+BEGIN_SRC elisp
+(use-package gnus
+ :config
+ (fset #'gnus-mode-line-buffer-identification #'identity)
+#+END_SRC
+
+Show the most recent threads at the top of the summary buffer.
#+BEGIN_SRC elisp
-(setq gnus-init-file "~/.emacs.d/gnus"
- gnus-startup-file "~/.newsrc"
- gnus-directory "~/.local/share/gnus/News/"
- gnus-article-save-directory "~/.local/share/gnus/News/"
- gnus-kill-files-directory "~/.local/share/gnus/News/"
- gnus-uu-default-dir "~/.local/share/gnus/News/"
- gnus-agent-directory "~/.local/share/gnus/News/agent/"
- gnus-x-face-directory "~/.local/share/gnus/News/x-faces"
- nndiary-directory "~/.local/share/gnus/News/diary/"
- nndraft-directory "~/.local/share/gnus/News/drafts/"
- gnus-duplicate-file "~/.local/share/gnus/News/suppression"
- gnus-cache-active-file "~/.local/share/gnus/News/cache/active"
- gnus-cache-directory "~/.local/share/gnus/News/cache/"
- nnfolder-newsgroups-file "~/.local/share/gnus/Mail/newsgroups"
- gnus-home-directory "~/.local/share/gnus"
- mail-source-directory "~/.local/share/gnus/Mail/"
- message-directory "~/.local/share/gnus/Mail/"
- smime-certificate-directory "~/.local/share/gnus/Mail/certs/"
- smtpmail-queue-dir "~/.local/share/gnus/Mail/queued-mail/"
- nsm-settings-file "~/.cache/emacs/network-security.data")
+ :init
+ (setq gnus-thread-sort-functions 'gnus-thread-sort-by-most-recent-number)
+#+END_SRC
+
+Preference of hygene. See [[Filesystem]].
-(setq gnus-thread-sort-functions 'gnus-thread-sort-by-most-recent-number)
+#+BEGIN_SRC elisp
+ :init
+ (setq gnus-init-file "~/.emacs.d/gnus"
+ gnus-startup-file "~/.newsrc"
+ gnus-directory "~/.local/share/gnus/News/"
+ gnus-article-save-directory "~/.local/share/gnus/News/"
+ gnus-kill-files-directory "~/.local/share/gnus/News/"
+ gnus-uu-default-dir "~/.local/share/gnus/News/"
+ gnus-agent-directory "~/.local/share/gnus/News/agent/"
+ gnus-x-face-directory "~/.local/share/gnus/News/x-faces"
+ nndiary-directory "~/.local/share/gnus/News/diary/"
+ nndraft-directory "~/.local/share/gnus/News/drafts/"
+ gnus-duplicate-file "~/.local/share/gnus/News/suppression"
+ gnus-cache-active-file "~/.local/share/gnus/News/cache/active"
+ gnus-cache-directory "~/.local/share/gnus/News/cache/"
+ nnfolder-newsgroups-file "~/.local/share/gnus/Mail/newsgroups"
+ gnus-home-directory "~/.local/share/gnus"
+ mail-source-directory "~/.local/share/gnus/Mail/"
+ message-directory "~/.local/share/gnus/Mail/"
+ smime-certificate-directory "~/.local/share/gnus/Mail/certs/"
+ smtpmail-queue-dir "~/.local/share/gnus/Mail/queued-mail/"
+ nsm-settings-file "~/.cache/emacs/network-security.data"))
#+END_SRC
* Elfeed
@@ -1195,7 +1228,6 @@ available [[http://jakob.space/links/][on my website]] with links to the sites i
("http://asawicki.info/news_rss.php5" blog)
("https://www.filfre.net/feed/" blog)
("http://radare.today/index.xml" blog)
- ("https://lukesmith.xyz/rss.xml" blog)
("https://nickcano.com/rss/" blog)
("https://infinityplusonemath.wordpress.com/feed/" blog)
("https://www.rtl-sdr.com/feed/" blog)
@@ -1448,6 +1480,7 @@ in [[IRC]].
"Prefix keymap for bindings related to IRC.")
(bind-key "C-c i" irc-map)
(dolist (chord '("C-c i b"
+ "C-c i c"
"C-c i i"
"C-c i s"
"C-c i q"
@@ -1455,6 +1488,10 @@ in [[IRC]].
(bind-key chord irc-map))
(bind-key "C-c i b" #'irc-switch-buffer)
+ (bind-key "C-c i c" (lambda ()
+ (interactive)
+ (clear-irc-buffer)
+ (message "Backlog cleared.")))
(bind-key "C-c i i" #'ignore-channel)
(bind-key "C-c i s" #'irc)
(bind-key "C-c i q" #'irc-quit)

© 2015 - 2026 Jakob L. Kreuze