From d21ccd04906f049c8862095d06b41d9988415379 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 10 Feb 2021 17:34:39 -0600 Subject: Change section style --- config.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config.org') diff --git a/config.org b/config.org index f8c0f55..481e61a 100644 --- a/config.org +++ b/config.org @@ -531,8 +531,8 @@ I want the git version. modus-themes-bold-constructs t modus-themes-region 'bg-only modus-themes-org-blocks 'grayscale - modus-themes-headings '((1 . line) - (t . t)) + modus-themes-headings '((1 . section) + (t . no-color)) modus-themes-scale-headings nil modus-themes-mode-line 'borderless-3d) #+end_src -- cgit 1.4.1-21-gabe81 From 08cc50111547a0c0e55fa4f403eb6a3f917bd9a6 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 10 Feb 2021 17:35:02 -0600 Subject: Rebind M-= to `count-words' --- config.org | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'config.org') diff --git a/config.org b/config.org index 481e61a..7fc3a59 100644 --- a/config.org +++ b/config.org @@ -1576,14 +1576,13 @@ don't know if it's that useful. (add-hook 'text-mode-hook #'hook--wc-mode-no-keybinds) #+end_src -*** Keybinding :crux: +*** Keybinding I just found out that =M-== counts the words in a region. That's great, but I -often want to count the words in the whole buffer. Enter -=crux-with-region-or-buffer=. I could change the binding. .... but I don't want to. +often want to count the words in the whole buffer. #+begin_src emacs-lisp :noweb-ref bindings - (crux-with-region-or-buffer count-words-region) + (define-key acdw/map (kbd "M-=") #'count-words) #+end_src ** Spell checking -- cgit 1.4.1-21-gabe81 From 3d89edf45c2f32f59771b6c6e14793ae6b2760c6 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 10 Feb 2021 17:35:53 -0600 Subject: Add acdw/reading-mode Currently, it increases the text scale, turns on visual-fill-column-mode and iscroll-mode. --- config.org | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) (limited to 'config.org') diff --git a/config.org b/config.org index 7fc3a59..4c6717f 100644 --- a/config.org +++ b/config.org @@ -1640,10 +1640,25 @@ Display corrections with =completing-read=. #'(lambda () (blackout 'iscroll-mode))) #+end_src -** TODO Reading mode +** Reading mode A custom mode to make reading comfy +#+begin_src emacs-lisp :noweb-ref modes + (define-minor-mode acdw/reading-mode + "Make reading comfier." + :lighter " Read" ; later: book emoji + (if acdw/reading-mode + (progn ;; turn on + (text-scale-increase +1) + (visual-fill-column-mode +1) + (iscroll-mode +1)) + (progn ;; turn off + (text-scale-increase 0) + (visual-fill-column-mode -1) + (iscroll-mode -1)))) +#+end_src + * Programming ** Comments @@ -2078,12 +2093,7 @@ See [[https://github.com/redguardtoo/mastering-emacs-in-one-year-guide/blob/mast #+end_src #+begin_src emacs-lisp :noweb-ref hooks - (defun hook--elfeed-show () - (text-scale-adjust +1) - (visual-fill-column-mode +1) - (iscroll-mode +1)) - - (add-hook 'elfeed-show-mode-hook #'hook--elfeed-show) + (add-hook 'elfeed-show-mode-hook #'acdw/reading-mode) #+end_src #+begin_src emacs-lisp :noweb-ref bindings @@ -2263,6 +2273,10 @@ others. (define-key elpher-mode-map "G" #'elpher-go-current)) #+end_src +#+begin_src emacs-lisp :noweb-ref hooks + (add-hook 'elpher-mode-hook #'acdw/reading-mode) +#+end_src + *** Gemini-mode :package: #+begin_src emacs-lisp :noweb-ref packages -- cgit 1.4.1-21-gabe81 From fbdb2d0c5fdbca51713964660b2fd52d98ecd799 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 10 Feb 2021 17:36:41 -0600 Subject: Change height of gemini headings --- config.org | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'config.org') diff --git a/config.org b/config.org index 4c6717f..b3bc072 100644 --- a/config.org +++ b/config.org @@ -2252,11 +2252,14 @@ others. (setq-default elpher-ipv4-always t) (doremi-face-set 'elpher-gemini-heading1 - '((t (:inherit (modus-theme-heading-1))))) + '((t (:inherit (modus-theme-heading-1) + :height 1.0)))) (doremi-face-set 'elpher-gemini-heading2 - '((t (:inherit (modus-theme-heading-2))))) + '((t (:inherit (modus-theme-heading-2) + :height 1.0)))) (doremi-face-set 'elpher-gemini-heading3 - '((t (:inherit (modus-theme-heading-3))))) + '((t (:inherit (modus-theme-heading-3) + :height 1.0)))) #+end_src #+begin_src emacs-lisp :noweb-ref no-littering -- cgit 1.4.1-21-gabe81 From 89c4d832ca43858010bd8b0e9e1541618694d5dc Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 10 Feb 2021 17:37:14 -0600 Subject: Change book capture filing location They should go under the *Later heading in books.org. --- config.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.org') diff --git a/config.org b/config.org index b3bc072..45ff91d 100644 --- a/config.org +++ b/config.org @@ -2750,7 +2750,7 @@ TODO, and Diary. :empty-lines 1) ;; Books to read ("b" "Book to read" entry - (file "books.org") + (file+headline "books.org" "Later") "* TOREAD %^{Title} :PROPERTIES: :Author: %^{Author} -- cgit 1.4.1-21-gabe81 From acb1ed8f5e7565c886a24773a0aba995a32b8166 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 10 Feb 2021 17:43:03 -0600 Subject: Add `display-fill-column-indicator-mode' to `acdw/reading-mode' --- config.org | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'config.org') diff --git a/config.org b/config.org index 45ff91d..d96596f 100644 --- a/config.org +++ b/config.org @@ -1652,11 +1652,13 @@ A custom mode to make reading comfy (progn ;; turn on (text-scale-increase +1) (visual-fill-column-mode +1) - (iscroll-mode +1)) + (iscroll-mode +1) + (display-fill-column-indicator-mode -1)) (progn ;; turn off (text-scale-increase 0) (visual-fill-column-mode -1) - (iscroll-mode -1)))) + (iscroll-mode -1) + (display-fill-column-indicator-mode +1)))) #+end_src * Programming -- cgit 1.4.1-21-gabe81 From 6efbd9361734c91ccd29d0e39f9ecb42db73a091 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 10 Feb 2021 20:02:55 -0600 Subject: Add feed --- config.org | 1 + 1 file changed, 1 insertion(+) (limited to 'config.org') diff --git a/config.org b/config.org index 02fc297..1a17b8f 100644 --- a/config.org +++ b/config.org @@ -2081,6 +2081,7 @@ See [[https://github.com/redguardtoo/mastering-emacs-in-one-year-guide/blob/mast #+begin_src emacs-lisp :noweb-ref settings (setq elfeed-feeds `( + ("https://www.greghendershott.com/feeds/all.atom.xml" tech) ("https://hans.gerwitz.com/feeds/writing.rss" fwends) ("http://planet.lisp.org/rss20.xml" tech lisp) ("https://wflewis.com/feed.xml" blags fwends) -- cgit 1.4.1-21-gabe81 From d68a784355283b2faf3c098283b0577f45e6430a Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 10 Feb 2021 20:19:08 -0600 Subject: Add feed --- config.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config.org') diff --git a/config.org b/config.org index 7c51838..a87f2e7 100644 --- a/config.org +++ b/config.org @@ -2107,7 +2107,8 @@ See [[https://github.com/redguardtoo/mastering-emacs-in-one-year-guide/blob/mast #+begin_src emacs-lisp :noweb-ref settings (setq elfeed-feeds `( - ("https://www.greghendershott.com/feeds/all.atom.xml" tech) + ("https://blog.astrosnail.pt.eu.org/feed.atom" tech blags) + ("https://www.greghendershott.com/feeds/all.atom.xml" tech blags) ("https://hans.gerwitz.com/feeds/writing.rss" fwends) ("http://planet.lisp.org/rss20.xml" tech lisp) ("https://wflewis.com/feed.xml" blags fwends) -- cgit 1.4.1-21-gabe81