Minor reformatting & docstring tweak
This commit is contained in:
parent
77eee38c41
commit
af41e17355
2 changed files with 7 additions and 7 deletions
|
@ -186,8 +186,7 @@ possible, or just one char if that's not possible."
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(insert-char ?\s (- ocol (current-column)) nil))))
|
(insert-char ?\s (- ocol (current-column)) nil))))
|
||||||
;;
|
;;
|
||||||
((and (= n 1)
|
((and (= n 1) (bound-and-true-p smartparens-mode))
|
||||||
(bound-and-true-p smartparens-mode))
|
|
||||||
(cond ((and (memq (char-before) (list ?\ ?\t))
|
(cond ((and (memq (char-before) (list ?\ ?\t))
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(and (> (- (skip-chars-backward " \t" (line-beginning-position))) 0)
|
(and (> (- (skip-chars-backward " \t" (line-beginning-position))) 0)
|
||||||
|
@ -213,7 +212,7 @@ possible, or just one char if that's not possible."
|
||||||
((run-hook-with-args-until-success 'doom-delete-backward-functions))
|
((run-hook-with-args-until-success 'doom-delete-backward-functions))
|
||||||
((doom/backward-delete-whitespace-to-column)))))))
|
((doom/backward-delete-whitespace-to-column)))))))
|
||||||
;; Otherwise, do simple deletion.
|
;; Otherwise, do simple deletion.
|
||||||
(t (delete-char (- n) killflag))))
|
((delete-char (- n) killflag))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/retab (arg &optional beg end)
|
(defun doom/retab (arg &optional beg end)
|
||||||
|
|
|
@ -145,11 +145,12 @@ immediately runs it on the current candidate (ending the ivy session)."
|
||||||
(advice-add #'ivy-posframe-setup :override #'ignore)
|
(advice-add #'ivy-posframe-setup :override #'ignore)
|
||||||
:config
|
:config
|
||||||
(setq ivy-fixed-height-minibuffer nil
|
(setq ivy-fixed-height-minibuffer nil
|
||||||
ivy-posframe-parameters `((min-width . 90)
|
ivy-posframe-parameters
|
||||||
|
`((min-width . 90)
|
||||||
(min-height . ,ivy-height)
|
(min-height . ,ivy-height)
|
||||||
(internal-border-width . 10)))
|
(internal-border-width . 10)))
|
||||||
|
|
||||||
;; ... let's do it manually
|
;; ... let's do it manually instead
|
||||||
(unless (assq 'ivy-posframe-display-at-frame-bottom-left ivy-display-functions-props)
|
(unless (assq 'ivy-posframe-display-at-frame-bottom-left ivy-display-functions-props)
|
||||||
(dolist (fn (list 'ivy-posframe-display-at-frame-bottom-left
|
(dolist (fn (list 'ivy-posframe-display-at-frame-bottom-left
|
||||||
'ivy-posframe-display-at-frame-center
|
'ivy-posframe-display-at-frame-center
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue