core-editor: remove help-fns+ & add helpful

This commit is contained in:
Henrik Lissner 2017-12-09 16:21:31 -05:00
parent 4a504a07aa
commit a8f4d85da3
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 12 additions and 4 deletions

View file

@ -257,9 +257,15 @@ extension, try to guess one."
(def-package! expand-region (def-package! expand-region
:commands (er/expand-region er/contract-region er/mark-symbol er/mark-word)) :commands (er/expand-region er/contract-region er/mark-symbol er/mark-word))
(def-package! help-fns+ ; Improved help commands (def-package! helpful
:commands (describe-buffer describe-command describe-file :commands (helpful-callable helpful-function helpful-macro helpful-command
describe-keymap describe-option describe-option-of-type)) helpful-key helpful-variable helpful-at-point)
:init
(global-set-key [remap describe-function] #'helpful-callable)
(global-set-key [remap describe-variable] #'helpful-variable)
(global-set-key [remap describe-key] #'helpful-key)
:config
(map! :map helpful-mode-map :n "q" #'quit-window))
(def-package! pcre2el (def-package! pcre2el
:commands rxt-quote-pcre) :commands rxt-quote-pcre)

View file

@ -106,6 +106,7 @@ recognized by DOOM's popup system. They are:
("*Warnings*" :size 12 :noselect t :autofit t) ("*Warnings*" :size 12 :noselect t :autofit t)
("*Messages*" :size 12 :noselect t) ("*Messages*" :size 12 :noselect t)
("*Help*" :size 0.3) ("*Help*" :size 0.3)
("^\\*Helpful" :regexp t :size 0.3)
("^\\*.*Shell Command.*\\*$" :regexp t :size 20 :noselect t :autokill t) ("^\\*.*Shell Command.*\\*$" :regexp t :size 20 :noselect t :autokill t)
(apropos-mode :size 0.3 :autokill t :autoclose t) (apropos-mode :size 0.3 :autokill t :autoclose t)
(Buffer-menu-mode :size 20 :autokill t) (Buffer-menu-mode :size 20 :autokill t)

View file

@ -29,7 +29,7 @@
(package! command-log-mode) (package! command-log-mode)
(package! editorconfig) (package! editorconfig)
(package! expand-region) (package! expand-region)
(package! help-fns+) (package! helpful)
(package! pcre2el) (package! pcre2el)
(package! smart-forward) (package! smart-forward)
(package! smartparens) (package! smartparens)

View file

@ -202,6 +202,7 @@
:desc "Find library" :n "l" #'find-library :desc "Find library" :n "l" #'find-library
:desc "Toggle Emacs log" :n "m" #'doom/popup-toggle-messages :desc "Toggle Emacs log" :n "m" #'doom/popup-toggle-messages
:desc "Command log" :n "L" #'global-command-log-mode :desc "Command log" :n "L" #'global-command-log-mode
:desc "At point" :n "." #'helpful-at-point
:desc "Describe function" :n "f" #'describe-function :desc "Describe function" :n "f" #'describe-function
:desc "Describe key" :n "k" #'describe-key :desc "Describe key" :n "k" #'describe-key
:desc "Describe char" :n "c" #'describe-char :desc "Describe char" :n "c" #'describe-char