From 195618bcf36a4ee2fe6f038d6d27936f1c1f22df Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 31 Jan 2022 00:54:53 -0600 Subject: Random stuff --- init.el | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 280f7e6..c06e44d 100644 --- a/init.el +++ b/init.el @@ -186,7 +186,7 @@ (seq "." (or "mp4" "gif" "mov" "MOV" "webm") eos) ;; music "soundcloud.com" "bandcamp.com" - (seq "." (or "ogg" "mp3") eos))) + (seq "." (or "ogg" "mp3" "opus" "m4a") eos))) (lambda (&rest args) (apply (if (executable-find "mpv") #'+browse-url-with-mpv @@ -302,7 +302,10 @@ eshell-scroll-to-bottom-on-input 'all eshell-smart-space-goes-to-end t eshell-where-to-jump 'begin - eshell-banner-message "") + eshell-banner-message "" + eshell-prompt-regexp (rx bol (* (not (any ?# ?$ ?\n))) + " " (any ?# ?$) + (* " "))) (with-eval-after-load 'mwim (setf (alist-get 'eshell-mode mwim-beginning-of-line-function) #'eshell-bol)) @@ -318,7 +321,7 @@ (concat eshell-prompt-regexp "\\(.*\\)") 1)) - truncate-lines t)) + (cons 'truncate-lines t))) (set (make-local-variable (car setting)) (cdr setting))) ;; Bind keys (dolist (binding '(("C-d" . +eshell-quit-or-delete-char))) @@ -1442,8 +1445,8 @@ See also `crux-reopen-as-root-mode'." (setup (:straight macrostep) (:require macrostep) - (:with-mode emacs-lisp-mode - (:bind "C-c e" #'macrostep-expand))) + (:bind-into (emacs-lisp-mode lisp-interaction-mode) + "C-c e" #'macrostep-expand)) (setup (:straight (magit :host github :repo "magit/magit"))) -- cgit 1.4.1-21-gabe81