diff options
author | Yuchen Pei <id@ypei.org> | 2025-01-01 18:09:32 +1100 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2025-01-01 18:09:32 +1100 |
commit | 000c991a71e92400d0a31e7c65b5c9bb8f3ef192 (patch) | |
tree | 761400fd6b57a634a1c9e77cbefcebf08edbaff5 /emacs/.emacs.d/lisp/my/my-org-remark.el | |
parent | 82cf9a13134204b87b7fe01d1cebdf5771d7cebb (diff) |
[emacs] Enhance epub reading
* emacs/.emacs.d/init/ycp-markup.el: set text-width to be a bit less
than my-org-focus-write width (76 vs 80); increase
next-screen-context-lines in nov mode; set left text margin to 2 in
nov mode
* emacs/.emacs.d/init/ycp-org.el: Add keybindings to nov-mode when
org-remark is available. Unfortunately org-remark-nov-mode is a global
minor mode
* emacs/.emacs.d/lisp/my/my-buffer.el: update my-toggle-focus-write to
use empty buffers on both sides
* emacs/.emacs.d/lisp/my/my-nov.el: a function to set left margin in
nov mode
* emacs/.emacs.d/lisp/my/my-org-remark.el: a convenience function to
org-remark to mark or open depending on active mark
Also use my custom nov.el repo
Diffstat (limited to 'emacs/.emacs.d/lisp/my/my-org-remark.el')
-rw-r--r-- | emacs/.emacs.d/lisp/my/my-org-remark.el | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/emacs/.emacs.d/lisp/my/my-org-remark.el b/emacs/.emacs.d/lisp/my/my-org-remark.el new file mode 100644 index 0000000..3e0ef0a --- /dev/null +++ b/emacs/.emacs.d/lisp/my/my-org-remark.el @@ -0,0 +1,36 @@ +;;; my-org-remark.el -- customization to org-remark -*- lexical-binding: t -*- + +;; Copyright (C) 2025 Free Software Foundation, Inc. + +;; Author: Yuchen Pei <id@ypei.org> +;; Package-Requires: ((emacs "29.4")) + +;; This file is part of dotted. + +;; dotted is free software: you can redistribute it and/or modify it under +;; the terms of the GNU Affero General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; dotted is distributed in the hope that it will be useful, but WITHOUT +;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +;; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General +;; Public License for more details. + +;; You should have received a copy of the GNU Affero General Public +;; License along with dotted. If not, see <https://www.gnu.org/licenses/>. + +;;; Commentary: + +;; customization to org-remark. + +;;; Code: + +(defun my-org-remark-open-or-create () + (interactive) + (if mark-active + (call-interactively 'org-remark-mark) + (call-interactively 'org-remark-open))) + +(provide 'my-org-remark) +;;; my-org-remark.el ends here |