diff --git a/.gitignore b/.gitignore index db83495..0aa9cc0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *~ /*.el /ha-work.org +/elisp/gourmet-projects.el diff --git a/bootstrap.org b/bootstrap.org index e185834..f3caebd 100644 --- a/bootstrap.org +++ b/bootstrap.org @@ -109,9 +109,11 @@ the native-comp model, but I reserve the right to change this." The following loads the rest of my org-mode literate files. I add them as they are /ready/, but eventually, I'll trim this up into a nicer pattern. #+BEGIN_SRC emacs-lisp (defvar ha-hamacs-files `("ha-config.org" - "ha-display.org" + ,(when (display-graphic-p) + "ha-display.org") "ha-org.org" - "ha-org-word-processor.org" + ,(when (display-graphic-p) + "ha-org-word-processor.org") "ha-org-clipboard.org" "ha-org-journaling.org" "ha-org-publishing.org" diff --git a/ha-config.org b/ha-config.org index edc342a..66d021d 100644 --- a/ha-config.org +++ b/ha-config.org @@ -546,8 +546,8 @@ _w_: select _n_: new _^_: taller (t) _z_: Swap _+_: text larger _c_: cycle _d_: delete _V_: shorter (T) _u_: undo _-_: text smaller _j_: go up _=_: balance _>_: wider _U_: undo+ _F_: font larger _k_: down _m_: maximize _<_: narrower _r_: redo _f_: font smaller -_h_: left _s_: h-split _e_: balanced _R_: redo+ -_l_: right _v_: v-split _o_: choose by number (also 0-9) +_h_: left _s_: h-split _e_: balanced _R_: redo+ _0_: toggle neotree +_l_: right _v_: v-split _o_: choose by number (also 1-9) " ("w" ace-window) ("c" other-window) @@ -586,7 +586,6 @@ _l_: right _v_: v-split _o_: choose by number (also 0-9) ("e" balance-windows) ("o" winum-select-window-by-number) - ("0" winum-select-window-0-or-10) ("1" winum-select-window-1) ("2" winum-select-window-2) ("3" winum-select-window-3) @@ -596,6 +595,7 @@ _l_: right _v_: v-split _o_: choose by number (also 0-9) ("7" winum-select-window-7) ("8" winum-select-window-8) ("9" winum-select-window-9) + ("0" neotree-toggle) ;; Extra bindings: ("t" evil-window-increase-height :color pink) @@ -1112,6 +1112,17 @@ The advantage of running terminals in Emacs is the ability to copy text without *Note:* To exit the copy-mode (and copy the selected text to the clipboard), hit ~Return~. Hrm. Seems that I might want a function to copy the output of the last command to a register, or even an org-capture... +** Neotree +I primarily use [[https://github.com/jaypei/emacs-neotree][Neotree]] when I am screen-sharing my Emacs session with collegues as it shows a /project/ like an IDE. +#+BEGIN_SRC emacs-lisp +(use-package neotree + :config + (evil-define-key 'normal neotree-mode-map (kbd "TAB") 'neotree-enter) + (evil-define-key 'normal neotree-mode-map (kbd "SPC") 'neotree-quick-look) + (evil-define-key 'normal neotree-mode-map (kbd "RET") 'neotree-enter) + (evil-define-key 'normal neotree-mode-map (kbd "g") 'neotree-refresh) + (evil-define-key 'normal neotree-mode-map (kbd "H") 'neotree-hidden-file-toggle)) +#+END_SRC * Technical Artifacts :noexport: Let's provide a name so that the file can be required: diff --git a/ha-display.org b/ha-display.org index 9758203..96a91eb 100644 --- a/ha-display.org +++ b/ha-display.org @@ -278,6 +278,13 @@ And some keybindings to call them: (global-set-key (kbd "s-0") 'font-size-monitor-default) (global-set-key (kbd "s-9") 'font-size-laptop-default) #+END_SRC + +* Icons and Whatnot +Not use what I'm doing with the [[https://github.com/domtronn/all-the-icons.el][all-the-icons]] package, but the Doom Modeline uses much of this. +#+BEGIN_SRC emacs-lisp +(use-package all-the-icons) +#+END_SRC +*Note:* Install everything with the function, =all-the-icons-install-fonts=. * Ligatures Seems like getting ligatures to work in Emacs has been a Holy Grail. On Mac, I've used special builds that have hacks, but now with Emacs 27 and Harfbuzz, I should be able to get --> to look like it should. diff --git a/ha-org.org b/ha-org.org index f8af645..0a4d52e 100644 --- a/ha-org.org +++ b/ha-org.org @@ -52,10 +52,6 @@ Org is an important part of my Emacs world, and with a lot of customization (eve org-src-fontify-natively t org-src-tab-acts-natively t) #+END_SRC -Overcoming a bug: -#+BEGIN_SRC emacs-lisp -(defun org-clocking-buffer (&rest ignored)) -#+END_SRC * Configuration Section The following sections assume that org has been loaded, as this begin the configuration section: #+BEGIN_SRC emacs-lisp diff --git a/ha-programming.org b/ha-programming.org index 0b25204..ad918f3 100644 --- a/ha-programming.org +++ b/ha-programming.org @@ -375,7 +375,7 @@ While filename extensions work fine most of the time, I don't like to pre-pend = (use-package fish-mode :mode (rx ".fish" eol) :config - (ha-auto-insert-file (rx ".fish")) "fish-mode.sh") + (ha-auto-insert-file (rx ".fish") "fish-mode.sh") :hook (fish-mode . (lambda () (add-hook 'before-save-hook 'fish_indent-before-save)))) #+END_SRC