A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged


You can set it after counsel is loaded with: (with-eval-after-load 'counsel (setq ivy-initial-inputs-alist nil)) See (elisp) Hooks for Loading. You can achieve the same thing with use-package as follows: (use-package counsel :defer t :config (setq ivy-initial-inputs-alist nil))


funcall takes a function as its first argument, so you need if to return a function symbol. You can do that by sharp-quoting its return value: (defun a-plus-abs-b (a b) (funcall (if (> b 0) #'+ #'-) a b)) (a-plus-abs-b 9 4) ; => 13 Elisp is a Lisp-2, which means each symbol can have a function value and a variable value. When ...

Top 50 recent answers are included