diff --git a/.gitignore b/.gitignore index 2ded73f..e295555 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,7 @@ /elisp/gourmet-projects.el /ha-private.org /incubate.org +/elisp/beep.el +/elisp/boxes-extras.el +/elisp/boxes.el +/elisp/ha-focus.el diff --git a/beep-notify.wav b/beep-notify.wav new file mode 100644 index 0000000..504b168 Binary files /dev/null and b/beep-notify.wav differ diff --git a/ha-config.org b/ha-config.org index a587a6c..f854cfa 100644 --- a/ha-config.org +++ b/ha-config.org @@ -160,6 +160,13 @@ For this, I use the =request= package, which is /asynchronous/ #+BEGIN_SRC emacs-lisp #+END_SRC +** Demo It +Making demonstrations /within/ Emacs with [[https://github.com/howardabrams/demo-it][demo-it]]. +#+BEGIN_SRC emacs-lisp + (use-package demo-it + :straight (:type git :protocol ssh :host github :repo "howardabrams/demo-it") + :commands (demo-it-create demo-it-start)) +#+END_SRC * Configuration Changes ** Initial Settings and UI Let's turn off the menu and other things: diff --git a/ha-passwords.org b/ha-passwords.org index 9a46cab..0246e83 100644 --- a/ha-passwords.org +++ b/ha-passwords.org @@ -17,7 +17,7 @@ A literate programming version for Emacs code to generate and store passwords. ;; This file is not part of GNU Emacs. ;; ;; *NB:* Do not edit this file. Instead, edit the original literate file at: -;; /Users/howard.abrams/other/hamacs/ha-passwords.org +;; ~/other/hamacs/ha-passwords.org ;; And tangle the file to recreate this one. ;; ;;; Code: diff --git a/ha-programming-python.org b/ha-programming-python.org index 99b1301..1c92013 100644 --- a/ha-programming-python.org +++ b/ha-programming-python.org @@ -17,7 +17,7 @@ A literate programming file for configuring Python. ;; This file is not part of GNU Emacs. ;; ;; *NB:* Do not edit this file. Instead, edit the original literate file at: - ;; /Users/howard.abrams/other/hamacs/ha-programming-python.org + ;; ~/other/hamacs/ha-programming-python.org ;; And tangle the file to recreate this one. ;; ;;; Code: diff --git a/ha-programming.org b/ha-programming.org index 1c6aa3c..45e13a3 100644 --- a/ha-programming.org +++ b/ha-programming.org @@ -102,11 +102,24 @@ Do we want to use a debugger? ** 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 :tangle no - (use-package alert) +#+BEGIN_SRC emacs-lisp + (use-package alert + :init + (setq alert-default-style + (if (ha-running-on-macos?) + 'osx-notifier + 'libnotify))) (use-package beep - :straight nil) + :straight nil ; Already in the load-path + :hook (after-init . (lambda () (beep--when-finished "Emacs has started"))) + :config + (dolist (func '(org-publish + org-publish-all + org-publish-project + compile + shell-command)) + (advice-add func :around #'beep-when-runs-too-long))) #+END_SRC While that code /advices/ the publishing and compile commands, I may want to add more. ** iEdit diff --git a/support/final-initialize.el b/support/final-initialize.el index 8be3b25..4990929 100644 --- a/support/final-initialize.el +++ b/support/final-initialize.el @@ -60,9 +60,8 @@ non-tangled files." (unless (f-exists? hamacs-private-code-dir) (make-directory hamacs-private-code-dir)) - (ha/install-code-from-essays) ;; (ha/install-code-from-hamacs) - + (ha/install-code-from-essays)) (ha/install-configuration) (provide 'final-initialize)