From c808584cff7e6ba405248a8fa324941eee849506 Mon Sep 17 00:00:00 2001 From: jjanzen Date: Thu, 13 Mar 2025 23:17:28 -0500 Subject: system changes --- common/.config/emacs/init.el.org | 46 ++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'common') diff --git a/common/.config/emacs/init.el.org b/common/.config/emacs/init.el.org index 7f1f050..3066ba7 100644 --- a/common/.config/emacs/init.el.org +++ b/common/.config/emacs/init.el.org @@ -312,32 +312,32 @@ 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 - (use-package eshell - :init - ;; 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)) + (require 'eshell) + :init + ;; 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))) - prompt) - (eshell-interactive-filter nil prompt))) - (run-hooks 'eshell-after-prompt-hook))) + 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 -- cgit v1.2.3