feat(emacs): more lazy-loading & fix for screenshot.el

This commit is contained in:
Pavel Korytov 2022-01-07 00:27:09 +03:00
parent d8d1bb83ed
commit 49add5c0fb
2 changed files with 20 additions and 6 deletions

View file

@ -511,6 +511,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
(use-package visual-fill-column
:straight t
:commands (visual-fill-column-mode)
:config
(add-hook 'visual-fill-column-mode-hook
(lambda () (setq visual-fill-column-center-text t))))
@ -2284,10 +2285,12 @@ Returns (<buffer> . <workspace-index>) or nil."
(unless my/is-termux
(use-package jupyter
:straight t
:after (org)
:if (not my/is-termux)
:init
(my-leader-def "ar" 'jupyter-run-repl))
(use-package ob-hy
:after (org)
:straight t)
(setq org-plantuml-executable-path "/home/pavel/.guix-extra-profiles/emacs/emacs/bin/plantuml")
(setq org-plantuml-exec-mode 'plantuml)
@ -2429,6 +2432,7 @@ Returns (<buffer> . <workspace-index>) or nil."
(use-package jupyter
:straight t
:after (org)
:if (not my/is-termux)
:init
(my-leader-def "ar" 'jupyter-run-repl))
@ -2444,6 +2448,7 @@ Returns (<buffer> . <workspace-index>) or nil."
(org-babel-jupyter-aliases-from-kernelspecs t))
(use-package ob-hy
:after (org)
:straight t)
(setq my/org-view-html-tmp-dir "/tmp/org-html-preview/")
@ -3615,7 +3620,7 @@ Returns (<buffer> . <workspace-index>) or nil."
(use-package diredfl
:straight t
:after dired
:after (dired)
:config
(diredfl-global-mode 1))
@ -4471,7 +4476,9 @@ Returns (<buffer> . <workspace-index>) or nil."
(message "Sent %d to %d" (or signal 15) (cdr (assoc 'pid app)))))))
(use-package screenshot
:straight (:repo "tecosaur/screenshot" :host github :files ("screenshot.el") :commit "f8204e82dc0c1158c401735d36a143e6f6d24cf5")
:straight (:repo "tecosaur/screenshot"
:host github
:build (:not compile))
:if (display-graphic-p)
:commands (screenshot)
:init
@ -4560,6 +4567,7 @@ Returns (<buffer> . <workspace-index>) or nil."
:commands (power-mode))
(use-package redacted
:commands (redacted-mode)
:straight (:host github :repo "bkaestner/redacted.el"))
(use-package zone

View file

@ -1112,7 +1112,7 @@ Some default settings to manage tabs.
(setq auto-save-default nil)
#+end_src
*** Undo Tree
Replaces Emacs build-in sequential undo system with a tree-based one. Probably one of the greatest options of Emacs as a text editor.
Replaces Emacs built-in sequential undo system with a tree-based one. Probably one of the greatest options of Emacs as a text editor.
References:
- [[https://www.emacswiki.org/emacs/UndoTree][UndoTree on EmacsWiki]]
@ -1180,6 +1180,7 @@ A package to select an ever-increasing (or ever-decreasing) region of text.
#+begin_src emacs-lisp
(use-package visual-fill-column
:straight t
:commands (visual-fill-column-mode)
:config
(add-hook 'visual-fill-column-mode-hook
(lambda () (setq visual-fill-column-center-text t))))
@ -3483,6 +3484,7 @@ References:
#+begin_src emacs-lisp :noweb-ref org-lang-setup
(use-package jupyter
:straight t
:after (org)
:if (not my/is-termux)
:init
(my-leader-def "ar" 'jupyter-run-repl))
@ -3511,6 +3513,7 @@ Fortunately, =emacs-jupyter= provides a function for that problem as well.
*** Hy
#+begin_src emacs-lisp :noweb-ref org-lang-setup
(use-package ob-hy
:after (org)
:straight t)
#+end_src
*** View HTML in browser
@ -5286,7 +5289,7 @@ I used to use [[https://www.emacswiki.org/emacs/DiredPlus][dired+]], which provi
#+begin_src emacs-lisp
(use-package diredfl
:straight t
:after dired
:after (dired)
:config
(diredfl-global-mode 1))
#+end_src
@ -6496,7 +6499,9 @@ Tecosaur's plugin to make beautiful code screenshots.
#+begin_src emacs-lisp
(use-package screenshot
:straight (:repo "tecosaur/screenshot" :host github :files ("screenshot.el") :commit "f8204e82dc0c1158c401735d36a143e6f6d24cf5")
:straight (:repo "tecosaur/screenshot"
:host github
:build (:not compile))
:if (display-graphic-p)
:commands (screenshot)
:init
@ -6540,7 +6545,7 @@ My package for doing Pomodoro timer.
(add-hook 'pomm-on-status-changed-hook 'pomm-update-mode-line-string))
#+end_src
*** hledger
Trying out hledger.
[[hledger.org/][hledger]] is a plain-text double-entry accounting software. I use it for managing my personal finances, and thus far it's great.
| Guix dependency |
|-----------------|
@ -6631,6 +6636,7 @@ Watch out if you are using EXWM.
*** Redacted
#+begin_src emacs-lisp
(use-package redacted
:commands (redacted-mode)
:straight (:host github :repo "bkaestner/redacted.el"))
#+end_src
*** Zone