Add minibuffer stuff

This commit is contained in:
Case Duckworth 2021-12-17 18:30:22 -06:00
parent 506b6c66fe
commit b04b07bec3
2 changed files with 19 additions and 0 deletions

View File

@ -147,6 +147,11 @@
'("tildegit.org" "tildegit.org/api/v1" "tildegit.org"
forge-gitea-repository)))))
(setup minibuffer
(:require +minibuffer)
(:with-map minibuffer-local-map
(:bind "M-/" '+minibuffer-complete-history)))
(setup prog
(:local-set comment-auto-fill-only-comments t)
(:hook 'prettify-symbols-mode

14
lisp/+minibuffer.el Normal file
View File

@ -0,0 +1,14 @@
;;; +minibuffer.el -*- lexical-binding: t -*-
;;; Code:
;; https://www.manueluberti.eu//emacs/2021/12/10/shell-command/
(defun +minibuffer-complete-history ()
"Complete minibuffer history."
(interactive)
(completion-in-region (minibuffer--completion-prompt-end) (point-max)
(symbol-value minibuffer-history-variable)
nil))
(provide '+minibuffer)
;;; +minibuffer.el ends here