1

Limit minibuffer height and add Swiper

This commit is contained in:
Jessie Hildebrandt 2020-08-29 17:27:41 -04:00
parent a6e78a3167
commit b4d61a17b2

25
init.el
View File

@ -62,7 +62,8 @@
(setq-default (setq-default
initial-scratch-message "" ; Remove initial message initial-scratch-message "" ; Remove initial message
frame-title-format '("Emacs - %b") ; Window title formatting frame-title-format '("Emacs - %b") ; Window title formatting
truncate-lines 1 ; Truncate lines instead of wrapping truncate-lines t ; Truncate lines instead of wrapping
message-truncate-lines t ; Truncate messages in the echo area
inhibit-startup-screen t ; Don't show startup screen inhibit-startup-screen t ; Don't show startup screen
inhibit-splash-screen t ; Don't show splash screen inhibit-splash-screen t ; Don't show splash screen
x-gtk-use-system-tooltips nil ; Don't use system tooltips x-gtk-use-system-tooltips nil ; Don't use system tooltips
@ -162,6 +163,8 @@
;; Mode Configuration ;; Mode Configuration
(setq (setq
ido-max-prospects 8 ; (ido-mode) - Limit max on-screen matches to 8 items
ido-max-window-height 10 ; (ido-mode) - Limit max minibuffer height to 10 lines
show-paren-delay 0.0 ; (show-paren-mode) - Parenthesis highlighting delay show-paren-delay 0.0 ; (show-paren-mode) - Parenthesis highlighting delay
visual-line-fringe-indicators t ; (visual-line-mode) - Shows fringe indicators for wrapping visual-line-fringe-indicators t ; (visual-line-mode) - Shows fringe indicators for wrapping
) )
@ -569,6 +572,8 @@
(use-package smex (use-package smex
:config :config
(smex-initialize) (smex-initialize)
:custom
(smex-prompt-string "Cmd: ")
:bind :bind
("M-x" . smex)) ("M-x" . smex))
@ -773,7 +778,8 @@
:config :config
(ido-vertical-mode t) (ido-vertical-mode t)
:custom :custom
(ido-vertical-define-keys 'C-n-C-p-up-down-left-right)) (ido-vertical-define-keys 'C-n-C-p-up-down-left-right)
(ido-vertical-indicator ""))
;;==================== ;;====================
;; Flx-Ido (Ido Fuzzy Matching) ;; Flx-Ido (Ido Fuzzy Matching)
@ -786,6 +792,21 @@
:config :config
(flx-ido-mode t)) (flx-ido-mode t))
;;====================
;; Swiper (Inline Search w/ Overview)
;;====================
(use-package swiper
:demand
t
:custom
(ivy-dynamic-exhibit-delay-ms 250)
(ivy-count-format "")
(swiper-include-line-number-in-search t)
:bind
("C-s" . swiper)
("C-r" . swiper-backward))
;;==================== ;;====================
;; Anzu (Search Mode Info Display) ;; Anzu (Search Mode Info Display)
;;==================== ;;====================