diff options
author | jjanzen <jjanzen@jjanzen.ca> | 2025-03-15 08:51:47 -0500 |
---|---|---|
committer | jjanzen <jjanzen@jjanzen.ca> | 2025-03-15 08:51:47 -0500 |
commit | 9cd375ed7819a81c1586daa97ac3cc5137581292 (patch) | |
tree | f3e7cbd124d7d99ced13364167eca6a02a762580 /common/.config | |
parent | abdbdf82e25fcebb4d754c83bbc4bb8848ae0742 (diff) |
system changes
Diffstat (limited to 'common/.config')
-rw-r--r-- | common/.config/emacs/init.el.org | 47 |
1 files changed, 23 insertions, 24 deletions
diff --git a/common/.config/emacs/init.el.org b/common/.config/emacs/init.el.org index 5033852..e017289 100644 --- a/common/.config/emacs/init.el.org +++ b/common/.config/emacs/init.el.org @@ -312,31 +312,30 @@ Install a better PDF viewer than =DocView=. Install and configure =eat= as a terminal emulator in Emacs with =eshell= as a shell. #+begin_src emacs-lisp - (require 'em-prompt) ;; Overwrite a default function that makes the prompt editable for some reason - (defun eshell-emit-prompt () - "Emit a prompt if eshell is being used interactively." - (when (boundp 'ansi-color-context-region) - (setq ansi-color-context-region nil)) - (run-hooks 'eshell-before-prompt-hook) - (if (not eshell-prompt-function) - (set-marker eshell-last-output-end (point)) - (let ((prompt (funcall eshell-prompt-function))) - (add-text-properties - 0 (length prompt) - (if eshell-highlight-prompt - '( read-only t - field prompt - font-lock-face eshell-prompt - front-sticky (read-only field font-lock-face) - rear-nonsticky (read-only field font-lock-face)) - '( read-only t - field prompt - front-sticky (read-only field font-lock-face) - rear-nonsticky (read-only field font-lock-face))) - prompt) - (eshell-interactive-filter nil prompt))) - (run-hooks 'eshell-after-prompt-hook)) + (eval-after-load "em-prompt" (defun eshell-emit-prompt ()) + "Emit a prompt if eshell is being used interactively." + (when (boundp 'ansi-color-context-region) + (setq ansi-color-context-region nil)) + (run-hooks 'eshell-before-prompt-hook) + (if (not eshell-prompt-function) + (set-marker eshell-last-output-end (point)) + (let ((prompt (funcall eshell-prompt-function))) + (add-text-properties + 0 (length prompt) + (if eshell-highlight-prompt + '( read-only t + field prompt + font-lock-face eshell-prompt + front-sticky (read-only field font-lock-face) + rear-nonsticky (read-only field font-lock-face)) + '( read-only t + field prompt + front-sticky (read-only field font-lock-face) + rear-nonsticky (read-only field font-lock-face))) + prompt) + (eshell-interactive-filter nil prompt))) + (run-hooks 'eshell-after-prompt-hook)) (use-package eat :init |