[Emacs] Add org and elisp packages, add documentation
Add documentation for eldoc, elisp keybindings Add package eldoc-box for childframe elisp documentation Add org-sticky-header package
This commit is contained in:
parent
b5d04427a5
commit
4234be1849
@ -2040,6 +2040,15 @@ icons!
|
|||||||
,(all-the-icons-faicon "square" :height 1.1 :v-adjust 0.0))))
|
,(all-the-icons-faicon "square" :height 1.1 :v-adjust 0.0))))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Finally, ~org-sticky-header-mode~ reminds you where you are in your org
|
||||||
|
files at the top of your window.
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package org-sticky-header
|
||||||
|
:straight (:build t)
|
||||||
|
:after org
|
||||||
|
:hook (org-mode . org-sticky-header-mode))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
*** Tramp
|
*** Tramp
|
||||||
Tramp is an Emacs built-in package that allows the user to connect to
|
Tramp is an Emacs built-in package that allows the user to connect to
|
||||||
various hosts using various protocols, such as ~ssh~ and
|
various hosts using various protocols, such as ~ssh~ and
|
||||||
@ -2309,8 +2318,11 @@ Nginx syntax.
|
|||||||
|
|
||||||
*** General Programming Languages
|
*** General Programming Languages
|
||||||
**** EmacsLisp
|
**** EmacsLisp
|
||||||
|
This package displays the function’s arglist or variable’s docstring
|
||||||
|
in the echo area at the bottom of the frame. Quite useful indeed.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package eldoc
|
(use-package eldoc
|
||||||
|
:defer t
|
||||||
:after company
|
:after company
|
||||||
:init
|
:init
|
||||||
(eldoc-add-command 'company-complete-selection
|
(eldoc-add-command 'company-complete-selection
|
||||||
@ -2319,6 +2331,17 @@ Nginx syntax.
|
|||||||
'company-abort))
|
'company-abort))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
~eldoc-box~ takes ~eldoc~ a step further by displaying said information in
|
||||||
|
a child frame.
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package eldoc-box
|
||||||
|
:straight (:build t)
|
||||||
|
:hook (emacs-lisp-mode . eldoc-box-hover-at-point-mode)
|
||||||
|
:after eldoc)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
Let’s also declare some Elisp-dedicated keybindings, prefixed by a
|
||||||
|
comma.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(general-define-key
|
(general-define-key
|
||||||
:states 'motion
|
:states 'motion
|
||||||
@ -2599,7 +2622,7 @@ Undefining some stuff to make keybind prefixes work correctly.
|
|||||||
"b" '(nil :wk "buffers")
|
"b" '(nil :wk "buffers")
|
||||||
"bb" #'bufler-switch-buffer
|
"bb" #'bufler-switch-buffer
|
||||||
"bB" #'bury-buffer
|
"bB" #'bury-buffer
|
||||||
"bl" #'bufler-switch-buffer
|
"bl" #'bufler
|
||||||
"bd" #'kill-this-buffer
|
"bd" #'kill-this-buffer
|
||||||
"bD" #'kill-buffer
|
"bD" #'kill-buffer
|
||||||
"bh" #'dashboard-refresh-buffer
|
"bh" #'dashboard-refresh-buffer
|
||||||
|
Loading…
Reference in New Issue
Block a user