diff options
Diffstat (limited to 'users/tazjin')
-rw-r--r-- | users/tazjin/emacs/config/init.el | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/users/tazjin/emacs/config/init.el b/users/tazjin/emacs/config/init.el index 24719c8e450a..9f9573a3a8c7 100644 --- a/users/tazjin/emacs/config/init.el +++ b/users/tazjin/emacs/config/init.el @@ -165,14 +165,17 @@ :config (progn (setq vterm-shell "fish") (setq vterm-exit-functions - (lambda (&rest _) (kill-buffer (current-buffer)))) - (setq vterm-set-title-functions - (lambda (title) - (rename-buffer - (generate-new-buffer-name - (format "vterm<%s>" - (s-trim-left - (s-chop-prefix "fish" title))))))))) + (lambda (&rest _) (kill-buffer (current-buffer)))))) + +;; vterm removed the ability to set a custom title generator function +;; via the public API, so this overrides its private title generation +;; function instead +(defun vterm--set-title (title) + (rename-buffer + (generate-new-buffer-name + (format "vterm<%s>" + (s-trim-left + (s-chop-prefix "fish" title)))))) ;; ;; Packages providing language-specific functionality |