From af41e1735590597545f83c290bd706523cef8884 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 26 Jun 2018 01:47:32 +0200 Subject: [PATCH] Minor reformatting & docstring tweak --- core/autoload/editor.el | 5 ++--- modules/completion/ivy/config.el | 9 +++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/autoload/editor.el b/core/autoload/editor.el index 2457981e0..e6f2fd041 100644 --- a/core/autoload/editor.el +++ b/core/autoload/editor.el @@ -186,8 +186,7 @@ possible, or just one char if that's not possible." (save-excursion (insert-char ?\s (- ocol (current-column)) nil)))) ;; - ((and (= n 1) - (bound-and-true-p smartparens-mode)) + ((and (= n 1) (bound-and-true-p smartparens-mode)) (cond ((and (memq (char-before) (list ?\ ?\t)) (save-excursion (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)) ((doom/backward-delete-whitespace-to-column))))))) ;; Otherwise, do simple deletion. - (t (delete-char (- n) killflag)))) + ((delete-char (- n) killflag)))) ;;;###autoload (defun doom/retab (arg &optional beg end) diff --git a/modules/completion/ivy/config.el b/modules/completion/ivy/config.el index e16ea7ed9..e6f51fba9 100644 --- a/modules/completion/ivy/config.el +++ b/modules/completion/ivy/config.el @@ -145,11 +145,12 @@ immediately runs it on the current candidate (ending the ivy session)." (advice-add #'ivy-posframe-setup :override #'ignore) :config (setq ivy-fixed-height-minibuffer nil - ivy-posframe-parameters `((min-width . 90) - (min-height . ,ivy-height) - (internal-border-width . 10))) + ivy-posframe-parameters + `((min-width . 90) + (min-height . ,ivy-height) + (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) (dolist (fn (list 'ivy-posframe-display-at-frame-bottom-left 'ivy-posframe-display-at-frame-center