From 47f1162d285c67fdb228a5a25fcca29a447b625e Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Tue, 9 Nov 2021 08:21:08 -0800 Subject: [PATCH] Fixed bugs with the initialization Getting a number of warnings and startup errors, so I moved a couple of features earlier in the boot process and directly into the `init.el` file (see the initialization). Also, I'm not using the `beep` feature just yet. --- ha-config.org | 17 ++--------------- ha-org-sprint.org | 2 +- ha-programming.org | 8 +++++--- initialize | 13 +++++++++++++ 4 files changed, 21 insertions(+), 19 deletions(-) diff --git a/ha-config.org b/ha-config.org index 27364ef..840762d 100644 --- a/ha-config.org +++ b/ha-config.org @@ -61,20 +61,6 @@ And some Mac-specific settings: (add-to-list 'default-frame-alist '(ns-transparent-titlebar . t)) (add-to-list 'default-frame-alist '(ns-appearance . dark))) #+END_SRC - -Finally, we need to make sure that the =/usr/local/bin= path is available to Emacs. Normally, we get this value from =PATH= environment variable, but I have one Emacs installation that refuses to, so... here we are. - -#+BEGIN_SRC emacs-lisp -(add-to-list 'exec-path "/usr/local/bin/") -#+END_SRC -** Customization Section - -While I would rather program my configurations, sometimes the Emacs menu system is “good enough”, but I want it in its own file: -#+BEGIN_SRC emacs-lisp -(setq custom-file (expand-file-name "custom.el" user-emacs-directory)) -(when (file-exists-p custom-file) - (load custom-file)) -#+END_SRC * Support Packages ** Piper @@ -330,11 +316,12 @@ I'm not trying an experiment where specially-placed function keys on my fancy er :global-prefix "")) #+END_SRC *** Top-Level Operations -Let's try this out with +Let's try this general "space" prefix by defining some top-level operations, including hitting ~space~ twice brings up the =M-x= collection of functions: #+BEGIN_SRC emacs-lisp (ha-leader "SPC" '("M-x" . execute-extended-command) "." '("repeat" . repeat) + "!" 'shell-command "X" 'org-capture "L" 'org-store-link "RET" 'bookmark-jump diff --git a/ha-org-sprint.org b/ha-org-sprint.org index 86fa50a..72fd0f2 100644 --- a/ha-org-sprint.org +++ b/ha-org-sprint.org @@ -185,7 +185,7 @@ Emacs have an internal rep of a time. (defun get-date-time (date) "Many functions can't deal with dates as string, so this will parse DATE if it is a string, or return the value given otherwise." - (if (and data (stringp date)) + (if (and date (stringp date)) (->> date ; Shame that encode-time parse-time-string ; can't take a string, as (-take 6) ; this seems excessive... diff --git a/ha-programming.org b/ha-programming.org index a389536..6fd2b38 100644 --- a/ha-programming.org +++ b/ha-programming.org @@ -39,9 +39,11 @@ Farm off commands into /virtual environments/: ** Function Call Notifications As I've mentioned [[http://www.howardism.org/Technical/Emacs/beep-for-emacs.html][on my website]], I've created a [[file:~/website/Technical/Emacs/beep-for-emacs.org][beep function]] that notifies when long running processes complete. -#+BEGIN_SRC emacs-lisp -(use-package beep - :straight nil) +#+BEGIN_SRC emacs-lisp :tangle no + (use-package alert) + + (use-package beep + :straight nil) #+END_SRC While that code /advices/ the publishing and compile commands, I may want to add more. ** iEdit diff --git a/initialize b/initialize index a94996c..7043184 100755 --- a/initialize +++ b/initialize @@ -20,6 +20,19 @@ cat > $HAMACS_DEST/init.el <