Add minibuffer stuff
This commit is contained in:
parent
506b6c66fe
commit
b04b07bec3
5
init.el
5
init.el
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue