summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el5
-rw-r--r--lisp/+minibuffer.el14
2 files changed, 19 insertions, 0 deletions
diff --git a/init.el b/init.el index f8368db..ff686a5 100644 --- a/init.el +++ b/init.el
@@ -147,6 +147,11 @@
147 '("tildegit.org" "tildegit.org/api/v1" "tildegit.org" 147 '("tildegit.org" "tildegit.org/api/v1" "tildegit.org"
148 forge-gitea-repository))))) 148 forge-gitea-repository)))))
149 149
150(setup minibuffer
151 (:require +minibuffer)
152 (:with-map minibuffer-local-map
153 (:bind "M-/" '+minibuffer-complete-history)))
154
150(setup prog 155(setup prog
151 (:local-set comment-auto-fill-only-comments t) 156 (:local-set comment-auto-fill-only-comments t)
152 (:hook 'prettify-symbols-mode 157 (:hook 'prettify-symbols-mode
diff --git a/lisp/+minibuffer.el b/lisp/+minibuffer.el new file mode 100644 index 0000000..7aa57a5 --- /dev/null +++ b/lisp/+minibuffer.el
@@ -0,0 +1,14 @@
1;;; +minibuffer.el -*- lexical-binding: t -*-
2
3;;; Code:
4
5;; https://www.manueluberti.eu//emacs/2021/12/10/shell-command/
6(defun +minibuffer-complete-history ()
7 "Complete minibuffer history."
8 (interactive)
9 (completion-in-region (minibuffer--completion-prompt-end) (point-max)
10 (symbol-value minibuffer-history-variable)
11 nil))
12
13(provide '+minibuffer)
14;;; +minibuffer.el ends here