From b04b07bec3ee911a07725049586b348f9eab8750 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 17 Dec 2021 18:30:22 -0600 Subject: Add minibuffer stuff --- init.el | 5 +++++ lisp/+minibuffer.el | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 lisp/+minibuffer.el diff --git a/init.el b/init.el index f8368db..ff686a5 100644 --- a/init.el +++ b/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 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 @@ +;;; +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 -- cgit 1.4.1-21-gabe81