diff options
author | jao <jao@gnu.org> | 2025-10-15 19:21:43 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2025-10-15 19:21:43 +0100 |
commit | 7ea6f4969c2dea09ff8f2c26b5309da6c22d9b8e (patch) | |
tree | ad3de7bdb0dd4935bad381cdbf597a3dd04bcf49 | |
parent | 64160c0ee498c6b1c2b002fd8264e0dceec47d1e (diff) | |
download | elibs-7ea6f4969c2dea09ff8f2c26b5309da6c22d9b8e.tar.gz elibs-7ea6f4969c2dea09ff8f2c26b5309da6c22d9b8e.tar.bz2 |
wee tweaks
-rw-r--r-- | custom/jao-custom-eww.el | 4 | ||||
-rw-r--r-- | custom/jao-custom-gnus.el | 1 | ||||
-rw-r--r-- | init.el | 82 | ||||
-rw-r--r-- | lib/doc/jao-doc-session.el | 2 |
4 files changed, 46 insertions, 43 deletions
diff --git a/custom/jao-custom-eww.el b/custom/jao-custom-eww.el index a6fb342..221f442 100644 --- a/custom/jao-custom-eww.el +++ b/custom/jao-custom-eww.el @@ -245,8 +245,8 @@ (prog1 (apply fn args) (when (and p (> (point) p)) (jao-shr--kill-nl p))))) -(advice-add 'shr-tag-img :around #'jao-shr-tag-img) -(advice-add 'shr-insert :around #'jao-shr-insert) +;; (advice-add 'shr-tag-img :around #'jao-shr-tag-img) +;; (advice-add 'shr-insert :around #'jao-shr-insert) ;; (advice-remove 'shr-tag-img #'jao-shr-tag-img) ;; (advice-remove 'shr-insert #'jao-shr-insert) diff --git a/custom/jao-custom-gnus.el b/custom/jao-custom-gnus.el index dc729ce..bc39f5b 100644 --- a/custom/jao-custom-gnus.el +++ b/custom/jao-custom-gnus.el @@ -523,6 +523,7 @@ (setq gnus-single-article-buffer nil) (setq gnus-article-update-lapsed-header 60) (setq gnus-article-update-date-headers 60) +(setq gnus-article-truncate-lines t) (with-eval-after-load "gnus-art" (setq gnus-visible-headers @@ -1800,43 +1800,47 @@ (jao-d-l (progn - (defun jao-open-firefox () (interactive) (jao-mac-open "-a Firefox")) - (defun jao-open-nnw () (interactive) (jao-mac-open "-a NetNewsWire")) - (defun jao-open-telegram () (interactive) (jao-mac-open "-a Telegram")) - (global-set-key (kbd "s-f") #'jao-open-firefox) - (global-set-key (kbd "s-n") #'jao-open-nnw) - (global-set-key (kbd "s-t") #'jao-open-telegram) - - (transient-define-prefix jao-transient-utils () - "Global operations." - [["Notes" - ("nn" "create new note" jao-org-notes-create) - ("no" "open note" jao-org-notes-open) - ("nt" "open note by tags" jao-org-notes-consult-tags) - ("ng" "ripgrep notes" jao-org-notes-consult-ripgrep)] - ["Documents" - ("d" "go to doc" jao-select-pdf) - ("o" "open doc" jao-open-doc) - ("c" "view cache" doc-view-dired-cache)] - ["External" - ("xn" "browse NNW article" jao-nnw-browse-current-article) - ("xs" "browse safary article" jao-safari-browse-current) - ("xk" "open skim doc" jao-skim-open-current-doc) - ("xe" "choose an emoji" ns-do-show-character-palette)] - ["Blog" - ("bn" "create post" jao-org-static-blog-create-new-post) - ("bd" "create draft" jao-org-static-blog-create-new-draft) - ("be" "edit draft" jao-org-static-blog-edit-draft)] - ["Afio" - ("g" "mail" jao-afio-goto-mail) - ("z" "docs" jao-afio-goto-docs) - ("w" "wwww" jao-afio-goto-www) - ("f" "main" jao-afio-goto-main)] - ["Utilities" - ("s" "ssh" jao-ssh) - ("l" "packages" jao-list-packages) - ("p" "passwords" password-store-menu) - ("F" "copy buffer file name" copy-buffer-file-name-as-kill)]])) + (defun jao-open-firefox () (interactive) (jao-mac-open "-a Firefox")) + (defun jao-open-nnw () (interactive) (jao-mac-open "-a NetNewsWire")) + (defun jao-open-safari () (interactive) (jao-mac-open "-a Safari")) + (defun jao-open-telegram () (interactive) (jao-mac-open "-a Telegram")) + (global-set-key (kbd "s-f") #'jao-open-safari) + ;; (global-set-key (kbd "s-n") #'jao-open-nnw) + (global-set-key (kbd "s-t") #'jao-open-telegram) + + (transient-define-prefix jao-transient-utils () + "Global operations." + [["Notes" + ("nn" "create new note" jao-org-notes-create) + ("no" "open note" jao-org-notes-open) + ("nt" "open note by tags" jao-org-notes-consult-tags) + ("ng" "ripgrep notes" jao-org-notes-consult-ripgrep)] + ["Documents" + ("d" "go to doc" jao-select-pdf) + ("o" "open doc" jao-open-doc) + ("c" "view cache" doc-view-dired-cache)] + ["External" + ("xn" "browse NNW article" jao-nnw-browse-current-article) + ("xs" "browse safary article" jao-safari-browse-current) + ("xk" "open skim doc" jao-skim-open-current-doc) + ("xe" "choose an emoji" ns-do-show-character-palette)] + ["Blog" + ("bn" "create post" jao-org-static-blog-create-new-post) + ("bd" "create draft" jao-org-static-blog-create-new-draft) + ("be" "edit draft" jao-org-static-blog-edit-draft)] + ["Afio" + ("g" "mail" jao-afio-goto-mail) + ("z" "docs" jao-afio-goto-docs) + ("w" "wwww" jao-afio-goto-www) + ("f" "main" jao-afio-goto-main)] + ["Network" + ("s" "ssh" jao-ssh) + ("r" "r2e" jao-r2e)] + ["Utilities" + ("m" "mpc" jao-transient-media) + ("l" "packages" jao-list-packages) + ("p" "passwords" password-store-menu) + ("F" "copy buffer file name" copy-buffer-file-name-as-kill)]])) (transient-define-prefix jao-transient-utils () "Global operations." @@ -1903,9 +1907,7 @@ (global-set-key "\C-xr\M-w" #'kill-rectangle-save) (global-set-key "\C-c\C-z" #'comment-or-uncomment-region) (global-set-key "\C-z" #'comment-or-uncomment-region) - (jao-when-darwin - (global-set-key (kbd "M-`") 'other-frame) - (global-set-key (kbd "s-e") 'jao-firefox-open))) + (jao-when-darwin (global-set-key (kbd "M-`") 'other-frame))) (jao-global-keybindings) diff --git a/lib/doc/jao-doc-session.el b/lib/doc/jao-doc-session.el index d2076c1..df7e994 100644 --- a/lib/doc/jao-doc-session.el +++ b/lib/doc/jao-doc-session.el @@ -25,7 +25,7 @@ (defun jao-doc-session () (multisession-value jao-doc--session)) (defvar-local jao-doc-session-is-doc nil - "Setting this variable as t in a buffer will mark it as belonging to a session. + "Locally marks a buffer as belonging to a session. See also `jao-doc-session-mark'.") |