From 467cd7aff9292db69e459d49e53ea107f34739d8 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Thu, 24 Oct 2019 15:05:31 +0900 Subject: [PATCH] Use fboundp --- emacs.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs.el b/emacs.el index 4609615..c25da5d 100644 --- a/emacs.el +++ b/emacs.el @@ -2352,7 +2352,7 @@ Any output will be written to current buffer." ;; ivy -(when (require 'counsel nil t) +(when (fboundp 'counsel-M-x) (defvar ivy-re-builders-alist) (set-variable 'ivy-re-builders-alist '((t . (lambda (s) @@ -2371,7 +2371,7 @@ Any output will be written to current buffer." ;; (counsel-fzf))))) ) -(when (require 'swoop nil t) +(when (fboundp 'swoop) (global-set-key (kbd "C-s") 'swoop) (global-set-key (kbd "C-r") 'swoop) (define-key esc-map (kbd "C-s") 'swoop-multi)