Minor refactors across the board
This commit is contained in:
parent
ead07dea83
commit
a201409fdd
4 changed files with 7 additions and 14 deletions
|
@ -271,10 +271,10 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
|
||||||
:hook (ivy-mode . ivy-posframe-mode)
|
:hook (ivy-mode . ivy-posframe-mode)
|
||||||
:config
|
:config
|
||||||
(setq ivy-fixed-height-minibuffer nil
|
(setq ivy-fixed-height-minibuffer nil
|
||||||
|
ivy-posframe-border-width 10
|
||||||
ivy-posframe-parameters
|
ivy-posframe-parameters
|
||||||
`((min-width . 90)
|
`((min-width . 90)
|
||||||
(min-height . ,ivy-height)
|
(min-height . ,ivy-height)))
|
||||||
(internal-border-width . 10)))
|
|
||||||
|
|
||||||
;; default to posframe display function
|
;; default to posframe display function
|
||||||
(setf (alist-get t ivy-posframe-display-functions-alist) #'+ivy-display-at-frame-center-near-bottom)
|
(setf (alist-get t ivy-posframe-display-functions-alist) #'+ivy-display-at-frame-center-near-bottom)
|
||||||
|
@ -289,14 +289,8 @@ evil-ex-specific constructs, so we disable it solely in evil-ex."
|
||||||
(not (featurep! +prescient)))
|
(not (featurep! +prescient)))
|
||||||
:defer t ; is loaded by ivy
|
:defer t ; is loaded by ivy
|
||||||
:init
|
:init
|
||||||
(setq ivy-re-builders-alist
|
(setf (alist-get 't ivy-re-builders-alist) #'ivy--regex-fuzzy)
|
||||||
'((counsel-ag . ivy--regex-plus)
|
(setq ivy-initial-inputs-alist nil
|
||||||
(counsel-rg . ivy--regex-plus)
|
|
||||||
(counsel-grep . ivy--regex-plus)
|
|
||||||
(swiper . ivy--regex-plus)
|
|
||||||
(swiper-isearch . ivy--regex-plus)
|
|
||||||
(t . ivy--regex-fuzzy))
|
|
||||||
ivy-initial-inputs-alist nil
|
|
||||||
ivy-flx-limit 10000))
|
ivy-flx-limit 10000))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ you will be prompted to select one.
|
||||||
|
|
||||||
If there are conflicting keys across the two camps, the built-in ones are
|
If there are conflicting keys across the two camps, the built-in ones are
|
||||||
ignored. This makes it easy to override built-in snippets with private ones."
|
ignored. This makes it easy to override built-in snippets with private ones."
|
||||||
(when (memq this-command '(yas-expand +snippets/expand-on-region))
|
(when (eq this-command 'yas-expand)
|
||||||
(let* ((gc-cons-threshold doom-gc-cons-upper-limit)
|
(let* ((gc-cons-threshold doom-gc-cons-upper-limit)
|
||||||
(choices (cl-remove-duplicates choices :test #'+snippets--remove-p)))
|
(choices (cl-remove-duplicates choices :test #'+snippets--remove-p)))
|
||||||
(if (cdr choices)
|
(if (cdr choices)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; lang/clojure/config.el -*- lexical-binding: t; -*-
|
;;; lang/clojure/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; `clojure-mode'
|
;;;###package clojure-mode
|
||||||
(add-hook 'clojure-mode-hook #'rainbow-delimiters-mode)
|
(add-hook 'clojure-mode-hook #'rainbow-delimiters-mode)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,7 @@ to a pop up buffer."
|
||||||
(setq-local scroll-margin 0)
|
(setq-local scroll-margin 0)
|
||||||
(let (emacs-lisp-mode-hook)
|
(let (emacs-lisp-mode-hook)
|
||||||
(emacs-lisp-mode))
|
(emacs-lisp-mode))
|
||||||
(prin1 result buf)
|
(pp result buf)
|
||||||
(pp-buffer)
|
|
||||||
(let ((lines (count-lines (point-min) (point-max))))
|
(let ((lines (count-lines (point-min) (point-max))))
|
||||||
(if (> lines 1)
|
(if (> lines 1)
|
||||||
(save-selected-window
|
(save-selected-window
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue