Moved path section into its own file
This commit is contained in:
118
README.org
118
README.org
@@ -205,6 +205,7 @@ configuration I do *indeed* use it as an editor.
|
|||||||
(setq-default tab-width 2)
|
(setq-default tab-width 2)
|
||||||
(editorconfig-mode)
|
(editorconfig-mode)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Garbage Collection
|
* Garbage Collection
|
||||||
|
|
||||||
There's a lot of clashes that can happen with regards to performance, and
|
There's a lot of clashes that can happen with regards to performance, and
|
||||||
@@ -482,112 +483,6 @@ on a system by system basis.
|
|||||||
;;;
|
;;;
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Hail Hydra?!
|
|
||||||
|
|
||||||
I find that [[https://github.com/abo-abo/hydra][Hydra]] is great for providing visual menus for tasks that might
|
|
||||||
otherwise be fairly unwieldy. I use them hydra's for windows, tabs, and a
|
|
||||||
few other things in the future perhaps.
|
|
||||||
|
|
||||||
** Tabs
|
|
||||||
|
|
||||||
Pretty simple tab hydra. Handles opening, closing, and simple navigation.
|
|
||||||
|
|
||||||
#+name: tab-hydra
|
|
||||||
#+begin_src emacs-lisp :tangle no
|
|
||||||
(defhydra hydra-tab (:color red :hint nil)
|
|
||||||
"
|
|
||||||
Movement^^ ^Modifier^
|
|
||||||
----------------------------------------------------------------
|
|
||||||
_h_ ← _n_ ew
|
|
||||||
_l_ → _c_ lose
|
|
||||||
"
|
|
||||||
("h" tab-previous)
|
|
||||||
("l" tab-next)
|
|
||||||
("n" tab-new)
|
|
||||||
("c" tab-close)
|
|
||||||
("SPC" nil))
|
|
||||||
(global-set-key (kbd "C-c t") 'hydra-tab/body)
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** Windows
|
|
||||||
|
|
||||||
Quite a helpful window hydra. I cannot take credit for this. I copied it
|
|
||||||
from somewhere. When I find the link I'll add it here.
|
|
||||||
|
|
||||||
#+name: window-hydra
|
|
||||||
#+begin_src emacs-lisp :tangle no
|
|
||||||
(defhydra hydra-window (:color red :hint nil)
|
|
||||||
"
|
|
||||||
Movement^^ ^Split^ ^Switch^ ^Resize^
|
|
||||||
----------------------------------------------------------------
|
|
||||||
_h_ ← _v_ertical _b_uffer _q_ X←
|
|
||||||
_j_ ↓ _x_ horizontal _f_ind files _w_ X↓
|
|
||||||
_k_ ↑ _z_ undo _a_ce 1 _e_ X↑
|
|
||||||
_l_ → _Z_ reset _s_wap _r_ X→
|
|
||||||
_F_ollow _D_lt Other _S_ave max_i_mize
|
|
||||||
_SPC_ cancel _o_nly this _d_elete
|
|
||||||
"
|
|
||||||
("h" windmove-left )
|
|
||||||
("j" windmove-down )
|
|
||||||
("k" windmove-up )
|
|
||||||
("l" windmove-right )
|
|
||||||
("q" hydra-move-splitter-left)
|
|
||||||
("w" hydra-move-splitter-down)
|
|
||||||
("e" hydra-move-splitter-up)
|
|
||||||
("r" hydra-move-splitter-right)
|
|
||||||
("b" consult-buffer)
|
|
||||||
("f" consult-fd)
|
|
||||||
("F" follow-mode)
|
|
||||||
("a" (lambda ()
|
|
||||||
(interactive)
|
|
||||||
(ace-window 1)
|
|
||||||
(add-hook 'ace-window-end-once-hook
|
|
||||||
'hydra-window/body))
|
|
||||||
)
|
|
||||||
("v" (lambda ()
|
|
||||||
(interactive)
|
|
||||||
(split-window-right)
|
|
||||||
(windmove-right))
|
|
||||||
)
|
|
||||||
("x" (lambda ()
|
|
||||||
(interactive)
|
|
||||||
(split-window-below)
|
|
||||||
(windmove-down))
|
|
||||||
)
|
|
||||||
("s" (lambda ()
|
|
||||||
(interactive)
|
|
||||||
(ace-window 4)
|
|
||||||
(add-hook 'ace-window-end-once-hook
|
|
||||||
'hydra-window/body)))
|
|
||||||
("S" save-buffer)
|
|
||||||
("d" delete-window)
|
|
||||||
("D" (lambda ()
|
|
||||||
(interactive)
|
|
||||||
(ace-window 16)
|
|
||||||
(add-hook 'ace-window-end-once-hook
|
|
||||||
'hydra-window/body))
|
|
||||||
)
|
|
||||||
("o" delete-other-windows)
|
|
||||||
("i" ace-maximize-window)
|
|
||||||
("z" (progn
|
|
||||||
(winner-undo)
|
|
||||||
(setq this-command 'winner-undo))
|
|
||||||
)
|
|
||||||
("Z" winner-redo)
|
|
||||||
("SPC" nil))
|
|
||||||
(global-set-key (kbd "C-c w") 'hydra-window/body)
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
** Pulling it all together
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
(use-package hydra
|
|
||||||
:demand t
|
|
||||||
:config
|
|
||||||
<<tab-hydra>>
|
|
||||||
<<window-hydra>>)
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
* Modal Editing
|
* Modal Editing
|
||||||
|
|
||||||
I like using =vi= inspired modal editing. For a while I tried project evil, but
|
I like using =vi= inspired modal editing. For a while I tried project evil, but
|
||||||
@@ -985,16 +880,6 @@ This is great for keeping tabs seperate.
|
|||||||
(call-interactively 'bufferlo-bookmark-tab-load))
|
(call-interactively 'bufferlo-bookmark-tab-load))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
#+begin_quote
|
|
||||||
Easy-to-use buffer management and workspace persistence tools for Emacs workflow
|
|
||||||
management. Headbutt your way to productivity and moove ahead with [[https://github.com/florommel/bufferlo][bufferlo]].
|
|
||||||
#+end_quote
|
|
||||||
|
|
||||||
INCLUDE
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
* Error Checking
|
* Error Checking
|
||||||
|
|
||||||
** Flycheck
|
** Flycheck
|
||||||
@@ -1053,6 +938,7 @@ with the other packages in this section to provide it with candidates.
|
|||||||
|
|
||||||
:init
|
:init
|
||||||
(global-corfu-mode)
|
(global-corfu-mode)
|
||||||
|
(corfu-popupinfo-mode) ;; Show docs next to candidates.
|
||||||
|
|
||||||
:config
|
:config
|
||||||
;; Free the RET key for less intrusive behavior.
|
;; Free the RET key for less intrusive behavior.
|
||||||
|
|||||||
@@ -202,6 +202,8 @@ features.
|
|||||||
|
|
||||||
#+INCLUDE: "config/auth.org" :minlevel 1
|
#+INCLUDE: "config/auth.org" :minlevel 1
|
||||||
|
|
||||||
|
#+INCLUDE: "config/path.org" :minlevel 1
|
||||||
|
|
||||||
#+INCLUDE: "config/profiling.org" :minlevel 1
|
#+INCLUDE: "config/profiling.org" :minlevel 1
|
||||||
|
|
||||||
#+INCLUDE: "config/general.org" :minlevel 1
|
#+INCLUDE: "config/general.org" :minlevel 1
|
||||||
|
|||||||
26
config/custom.org
Normal file
26
config/custom.org
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
* Optional Customizations
|
||||||
|
|
||||||
|
Some of these seem to work well on any system so far, but won't automatically
|
||||||
|
be tangled. They're here for reference if need be, however.
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp :tangle no
|
||||||
|
(custom-set-variables
|
||||||
|
;; custom-set-variables was added by Custom.
|
||||||
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
;; Your init file should contain only one such instance.
|
||||||
|
;; If there is more than one, they won't work right.
|
||||||
|
'(custom-safe-themes
|
||||||
|
'("e8183add41107592ee785f9f9b4b08d21bd6c43206b85bded889cea1ee231337"
|
||||||
|
default))
|
||||||
|
'(geiser-chez-binary "chez")
|
||||||
|
'(highlight-indent-guides-auto-character-face-perc 75)
|
||||||
|
'(highlight-indent-guides-method 'character)
|
||||||
|
'(highlight-indent-guides-responsive 'top))
|
||||||
|
(custom-set-faces
|
||||||
|
;; custom-set-faces was added by Custom.
|
||||||
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
;; Your init file should contain only one such instance.
|
||||||
|
;; If there is more than one, they won't work right.
|
||||||
|
'(font-lock-comment-face ((t (:slant italic))))
|
||||||
|
'(font-lock-doc-face ((t (:inherit font-lock-string-face :slant italic)))))
|
||||||
|
#+end_src
|
||||||
Reference in New Issue
Block a user