diff --git a/core/core-editor.el b/core/core-editor.el index 3398f59e3..c60ada15d 100644 --- a/core/core-editor.el +++ b/core/core-editor.el @@ -262,7 +262,7 @@ savehist file." command-log-mode-open-log-turns-on-mode t command-log-mode-is-global t) - +;; `expand-region' (def-package! expand-region :commands (er/contract-region er/mark-symbol er/mark-word) :config @@ -273,18 +273,12 @@ savehist file." (advice-add #'evil-escape :before #'doom*quit-expand-region) (advice-add #'doom/escape :before #'doom*quit-expand-region)) -;; A better *help* buffer -(def-package! helpful - :defer t - :init - (setq counsel-describe-function-function #'helpful-callable - counsel-describe-variable-function #'helpful-variable) - - (define-key! 'global - [remap describe-function] #'helpful-callable - [remap describe-command] #'helpful-command - [remap describe-variable] #'helpful-variable - [remap describe-key] #'helpful-key)) +;; `helpful' --- a better *help* buffer +(define-key! 'global + [remap describe-function] #'helpful-callable + [remap describe-command] #'helpful-command + [remap describe-variable] #'helpful-variable + [remap describe-key] #'helpful-key) (provide 'core-editor) ;;; core-editor.el ends here diff --git a/modules/completion/ivy/config.el b/modules/completion/ivy/config.el index 7ba2fa133..c453aa666 100644 --- a/modules/completion/ivy/config.el +++ b/modules/completion/ivy/config.el @@ -103,6 +103,8 @@ immediately runs it on the current candidate (ending the ivy session)." (set-popup-rule! "^\\*ivy-occur" :size 0.35 :ttl 0 :quit nil) (setq counsel-find-file-ignore-regexp "\\(?:^[#.]\\)\\|\\(?:[#~]$\\)\\|\\(?:^Icon?\\)" + counsel-describe-function-function #'helpful-callable + counsel-describe-variable-function #'helpful-variable ;; Add smart-casing and compressed archive searching (-zS) to default ;; command arguments: counsel-rg-base-command "rg -zS --no-heading --line-number --color never %s ."