core-editor: remove help-fns+ & add helpful
This commit is contained in:
parent
4a504a07aa
commit
a8f4d85da3
4 changed files with 12 additions and 4 deletions
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue