Migration from ~/other to ~/src

Why was it any other way?
This commit is contained in:
Howard Abrams 2024-10-19 13:34:01 -07:00
parent 2bd14a876a
commit 6d92980311
35 changed files with 67 additions and 67 deletions

View file

@ -22,8 +22,8 @@ No longer need to install [[https://apps.apple.com/us/app/xcode/id497799835?mt=1
If I want to build from source (and not build from Homebrew), install all the dependencies first, by running: If I want to build from source (and not build from Homebrew), install all the dependencies first, by running:
#+begin_src sh #+begin_src sh
brew install pkg-config automake texinfo jpeg giflib\ brew install pkg-config automake texinfo jpeg giflib\
libtiff jansson libpng librsvg gnutls cmake libtiff jansson libpng librsvg gnutls cmake
#+end_src #+end_src
To get the native compilation for Emacs working, install: To get the native compilation for Emacs working, install:

View file

@ -19,7 +19,7 @@ A literate programming file for bootstraping my Emacs Configuration.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/bootstrap.org ;; ~/src/hamacs/bootstrap.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ A literate programming configuration for fancy agenda and todo lists.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/ha-agendas.org ;; ~/src/hamacs/ha-agendas.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ A literate programming file configuring critical applications.
;; While obvious, GNU Emacs does not include this file ;; While obvious, GNU Emacs does not include this file
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; /Users/howard/other/hamacs/ha-applications.org ;; ~/src/hamacs/ha-applications.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ A literate programming file for helper apps in Emacs.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/ha-aux-apps.org ;; ~/src/hamacs/ha-aux-apps.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:
@ -175,23 +175,23 @@ In the Telega chats, lets turn on non-fixed-width fonts:
* RPG DM * RPG DM
Been working on my [[https://gitlab.com/howardabrams/emacs-rpgdm][RPG DM project]] for getting Emacs helping as a /Dungeon Master's Assistant/. The idea is to be able to roll dice and whatnot. What I find most useful is the [[https://gitlab.com/howardabrams/emacs-rpgdm/-/blob/main/rpgdm-tables.el][random tables]]. Been working on my [[https://gitlab.com/howardabrams/emacs-rpgdm][RPG DM project]] for getting Emacs helping as a /Dungeon Master's Assistant/. The idea is to be able to roll dice and whatnot. What I find most useful is the [[https://gitlab.com/howardabrams/emacs-rpgdm/-/blob/main/rpgdm-tables.el][random tables]].
#+begin_src emacs-lisp #+begin_src emacs-lisp
(when (f-directory? "~/other/emacs-rpgdm") (when (f-directory? "~/src/emacs-rpgdm")
(use-package rpgdm (use-package rpgdm
:straight (:local-repo "~/other/emacs-rpgdm") :straight (:local-repo "~/src/emacs-rpgdm")
:commands (rpgdm-mode rpgdm-tables-load) :commands (rpgdm-mode rpgdm-tables-load)
:init (setq rpgdm-base (expand-file-name "~/other/emacs-rpgdm")) :init (setq rpgdm-base (expand-file-name "~/src/emacs-rpgdm"))
:config (ha-leader "t D" '("rpg dm" . rpgdm-mode)))) :config (ha-leader "t D" '("rpg dm" . rpgdm-mode))))
#+end_src #+end_src
Working on my new replacement of my DM code: Working on my new replacement of my DM code:
#+begin_src emacs-lisp #+begin_src emacs-lisp
(when (f-directory? "~/other/emacs-rpgtk") (when (f-directory? "~/src/emacs-rpgtk")
(use-package rpgtk (use-package rpgtk
:straight (:local-repo "~/other/emacs-rpgtk") :straight (:local-repo "~/src/emacs-rpgtk")
:after hydra :after hydra
;; :commands (rpgtk-mode rpgtk-tables-load rpgtk-dice rpgtk-message) ;; :commands (rpgtk-mode rpgtk-tables-load rpgtk-dice rpgtk-message)
:custom :custom
(rpgtk-tables-directory (expand-file-name "~/other/emacs-rpgtk/tables")) (rpgtk-tables-directory (expand-file-name "~/src/emacs-rpgtk/tables"))
:config :config
(ha-leader (ha-leader
@ -202,12 +202,12 @@ Working on my new replacement of my DM code:
And my [[https://gitlab.com/howardabrams/emacs-ironsworn][new Ironsworn project]] expands on it, giving me both the Oracles and the Moves. With an Org file, I can easily play Solo: And my [[https://gitlab.com/howardabrams/emacs-ironsworn][new Ironsworn project]] expands on it, giving me both the Oracles and the Moves. With an Org file, I can easily play Solo:
#+begin_src emacs-lisp #+begin_src emacs-lisp
(when (f-directory? "~/other/emacs-ironsworn") (when (f-directory? "~/src/emacs-ironsworn")
(use-package rpgdm-ironsworn (use-package rpgdm-ironsworn
:after rpgdm :after rpgdm
:straight (:local-repo "~/other/emacs-ironsworn") :straight (:local-repo "~/src/emacs-ironsworn")
:init :init
(setq rpgdm-ironsworn-project (expand-file-name "~/other/emacs-ironsworn") (setq rpgdm-ironsworn-project (expand-file-name "~/src/emacs-ironsworn")
;; Ignore org links that call my RPG functions: ;; Ignore org links that call my RPG functions:
org-link-elisp-skip-confirm-regexp (rx string-start (optional "(") "rpgdm-" org-link-elisp-skip-confirm-regexp (rx string-start (optional "(") "rpgdm-"
(or "tables-" "ironsworn-") (or "tables-" "ironsworn-")

View file

@ -19,7 +19,7 @@ A literate programming file for configuring org for capturing notes.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/ha-capturing-notes.org ;; ~/src/hamacs/ha-capturing-notes.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ A literate programming file for configuring Emacs.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/ha-config.org ;; ~/src/hamacs/ha-config.org
;; Using `find-file-at-point', and tangle the file to recreate this. ;; Using `find-file-at-point', and tangle the file to recreate this.
;; ;;
;;; Commentary: ;;; Commentary:
@ -858,7 +858,7 @@ Granted, this list is essentially a list of projects that I'm currently developi
(add-to-list 'ha-workspace-projects-personal (add-to-list 'ha-workspace-projects-personal
'("technical" "~/technical" ("ansible.org"))) '("technical" "~/technical" ("ansible.org")))
(add-to-list 'ha-workspace-projects-personal (add-to-list 'ha-workspace-projects-personal
'("hamacs" "~/other/hamacs" ("README.org" "ha-config.org"))) '("hamacs" "~/src/hamacs" ("README.org" "ha-config.org")))
#+end_src #+end_src
Given a list of information about project-workspaces, can we create them all? Given a list of information about project-workspaces, can we create them all?

View file

@ -19,7 +19,7 @@ A literate programming file for configuring Emacs to show a startup screen.
;; While obvious, GNU Emacs does not include this file or project. ;; While obvious, GNU Emacs does not include this file or project.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; /Users/howard/other/hamacs/ha-dashboard.org ;; ~/src/hamacs/ha-dashboard.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:
@ -139,7 +139,7 @@ The [[https://github.com/emacs-dashboard/emacs-dashboard][emacs-dashboard]] proj
(native-comp-available-p)) (native-comp-available-p))
"with Native Compilation" "") "with Native Compilation" "")
(ha-dashboard-version)) (ha-dashboard-version))
dashboard-startup-banner "~/other/hamacs/support/levitating-gnu.png" dashboard-startup-banner "~/src/hamacs/support/levitating-gnu.png"
dashboard-center-content t dashboard-center-content t
dashboard-set-init-info t dashboard-set-init-info t
dashboard-projects-switch-function 'project-switch-project dashboard-projects-switch-function 'project-switch-project
@ -231,7 +231,7 @@ Simple function to display a file in the top-right corner (if the file exists):
(defun ha-show-learn-this () (defun ha-show-learn-this ()
"" ""
(interactive) (interactive)
(let ((filename "~/other/hamacs/learn-this.org") (let ((filename "~/src/hamacs/learn-this.org")
(curr-win (get-buffer-window (buffer-name)))) (curr-win (get-buffer-window (buffer-name))))
(when (file-exists-p filename) (when (file-exists-p filename)
(split-window-below 15) (split-window-below 15)

View file

@ -19,7 +19,7 @@ A literate programming file for configuring Emacs to edit files of data.
;; While obvious, GNU Emacs does not include this file or project. ;; While obvious, GNU Emacs does not include this file or project.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; /Users/howard.abrams/other/hamacs/ha-data.org ;; ~/src/hamacs/ha-data.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ A literate programming file to configure the Emacs UI.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/ha-display.org ;; ~/src/hamacs/ha-display.org
;; Using `find-file-at-point', and tangle the file to recreate this one . ;; Using `find-file-at-point', and tangle the file to recreate this one .
;; ;;
;;; Code: ;;; Code:
@ -372,7 +372,7 @@ Most of the time, Emacs is on my desk is a darkened room, so I choose the dark t
(load-theme 'doom-wilmersdorf t) (load-theme 'doom-wilmersdorf t)
(ignore-errors (ignore-errors
;; TODO: File in progress! ;; TODO: File in progress!
(load-file "~/other/hamacs/ha-theme-dark.el")) (load-file "~/src/hamacs/ha-theme-dark.el"))
(ha-word-processor-fonts)) (ha-word-processor-fonts))
#+end_src #+end_src

View file

@ -19,7 +19,7 @@ A literate configuration file for email using Notmuch.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/ha-email.org ;; ~/src/hamacs/ha-email.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:
@ -166,7 +166,7 @@ Using [[https://isync.sourceforge.io/][isync]] (or is it =mbsync=) for mail retr
There are global settings: There are global settings:
#+begin_src conf :tangle ~/.mbsyncrc :noweb yes #+begin_src conf :tangle ~/.mbsyncrc :noweb yes
# Note: We now tangle this file from ~/other/hamacs/ha-email.org # Note: We now tangle this file from ~/src/hamacs/ha-email.org
Create Both Create Both
SyncState * SyncState *
MaxMessages 100 MaxMessages 100
@ -255,7 +255,7 @@ The general settings file that goes into =~/.notmuch-config=:
#+begin_src conf-unix :tangle ~/.notmuch-config #+begin_src conf-unix :tangle ~/.notmuch-config
# .notmuch-config - Configuration file for the notmuch mail system # .notmuch-config - Configuration file for the notmuch mail system
# Note: We now tangle this file from ~/other/hamacs/ha-email.org # Note: We now tangle this file from ~/src/hamacs/ha-email.org
# #
# For more information about notmuch, see https://notmuchmail.org # For more information about notmuch, see https://notmuchmail.org
#+end_src #+end_src
@ -329,7 +329,7 @@ Then we need a shell script called when beginning a retrieval, =pre-new= that si
#+begin_src shell :tangle ~/.mail/.notmuch/hooks/pre-new :shebang "#!/bin/bash" #+begin_src shell :tangle ~/.mail/.notmuch/hooks/pre-new :shebang "#!/bin/bash"
# More info about hooks: https://notmuchmail.org/manpages/notmuch-hooks-5/ # More info about hooks: https://notmuchmail.org/manpages/notmuch-hooks-5/
# Note: We now tangle this file from ~/other/hamacs/ha-email.org # Note: We now tangle this file from ~/src/hamacs/ha-email.org
echo "Starting not-much 'pre-new' script" echo "Starting not-much 'pre-new' script"
@ -342,7 +342,7 @@ And a =post-new= hook based on a filtering scheme that mimics the Hey.com workfl
#+begin_src shell :tangle ~/.mail/.notmuch/hooks/post-new :shebang "#!/bin/bash" #+begin_src shell :tangle ~/.mail/.notmuch/hooks/post-new :shebang "#!/bin/bash"
# Based On: https://gist.githubusercontent.com/frozencemetery/5042526/raw/57195ba748e336de80c27519fe66e428e5003ab8/post-new # Based On: https://gist.githubusercontent.com/frozencemetery/5042526/raw/57195ba748e336de80c27519fe66e428e5003ab8/post-new
# Note: We now tangle this file from ~/other/hamacs/ha-email.org # Note: We now tangle this file from ~/src/hamacs/ha-email.org
# #
# Install this by moving this file to <maildir>/.notmuch/hooks/post-new # Install this by moving this file to <maildir>/.notmuch/hooks/post-new
# NOTE: you need to define your maildir in the vardiable nm_maildir (just a few lines below in this script) # NOTE: you need to define your maildir in the vardiable nm_maildir (just a few lines below in this script)

View file

@ -18,7 +18,7 @@ A literate programming file for configuring the Emacs Shell.
;; While obvious, GNU Emacs does not include this file or project. ;; While obvious, GNU Emacs does not include this file or project.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; /Users/howard.abrams/other/hamacs/ha-eshell.org ;; ~/src/hamacs/ha-eshell.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ A literate programming file for configuring Evil mode in Emacs.
;; While obvious, GNU Emacs does not include this file or project. ;; While obvious, GNU Emacs does not include this file or project.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; /Users/howard.abrams/other/hamacs/ha-evil.org ;; ~/src/hamacs/ha-evil.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ A literate programming file for configuring =elfeed= in Emacs.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/ha-feed-reader.org ;; ~/src/hamacs/ha-feed-reader.org
;; Using `find-file-at-point', and tangle the file to recreate this one . ;; Using `find-file-at-point', and tangle the file to recreate this one .
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ A literate programming file for defining leaders with general
;; While obvious, GNU Emacs does not include this file or project. ;; While obvious, GNU Emacs does not include this file or project.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; /Users/howard.abrams/other/hamacs/ha-leader.org ;; ~/src/hamacs/ha-leader.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:
@ -195,7 +195,7 @@ And ways to load my tangled org-files:
"h h" '(:ignore t :which-key "hamacs") "h h" '(:ignore t :which-key "hamacs")
"h h f" '("features" . ha-hamacs-features) "h h f" '("features" . ha-hamacs-features)
"h h e" '("edit" . ha-hamacs-find-file) "h h e" '("edit" . ha-hamacs-find-file)
"h h j" `("heading jump" . ,(lambda () (interactive) (ha-hamacs-edit-file-heading "~/other/hamacs"))) "h h j" `("heading jump" . ,(lambda () (interactive) (ha-hamacs-edit-file-heading "~/src/hamacs")))
"h h h" '("reload" . ha-hamacs-load) "h h h" '("reload" . ha-hamacs-load)
"h h a" '("reload all" . ha-hamacs-reload-all) "h h a" '("reload all" . ha-hamacs-reload-all)

View file

@ -19,7 +19,7 @@ A literate programming configuration file for IRC communiction.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/ha-irc.org ;; ~/src/hamacs/ha-irc.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ A literate programming file of functions for formatting Emacs text and code into
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/org-clipboard.org ;; ~/src/hamacs/org-clipboard.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -21,7 +21,7 @@ A literate programming configuration file for extending the Journaling capabilit
;;; Commentary: ;;; Commentary:
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/org-journaling.org ;; ~/src/hamacs/org-journaling.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:
@ -74,7 +74,7 @@ And pull er up:
This depends on the following [[file:~/.doom.d/snippets/org-journal-mode/__journal][snippet/template file]]: This depends on the following [[file:~/.doom.d/snippets/org-journal-mode/__journal][snippet/template file]]:
#+begin_src snippet :tangle ~/other/hamacs/templates/journal #+begin_src snippet :tangle ~/src/hamacs/templates/journal
#+title: Journal Entry- `(ha-journal-file-datestamp)` #+title: Journal Entry- `(ha-journal-file-datestamp)`
$0 $0

View file

@ -26,7 +26,7 @@ A literate programming file for literate programming in Emacs Org Files.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original ;; *NB:* Do not edit this file. Instead, edit the original
;; literate file at: ;; literate file at:
;; /home/howard/other/hamacs/ha-org-literate.org ;; ~/src/hamacs/ha-org-literate.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ A literate programming file for publishing my website using org.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/org-publishing.org ;; ~/src/hamacs/org-publishing.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:
@ -208,7 +208,7 @@ As above, we can separate the publishing of the images and other static files:
`("tech-notes-static" `("tech-notes-static"
:base-directory "~/technical/" :base-directory "~/technical/"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|svg" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|svg"
:publishing-directory ,(concat org-mode-publishing-directory "/other/") :publishing-directory ,(concat org-mode-publishing-directory "/src/")
:recursive t :recursive t
:publishing-function org-publish-attachment)) :publishing-function org-publish-attachment))
#+end_src #+end_src
@ -217,7 +217,7 @@ Ive been committing my literate-style Emacs configuration for years now, and
#+begin_src emacs-lisp #+begin_src emacs-lisp
(add-to-list 'org-publish-project-alist (add-to-list 'org-publish-project-alist
`("hamacs" `("hamacs"
:base-directory "~/other/hamacs" :base-directory "~/src/hamacs"
:publishing-directory ,(concat org-mode-publishing-directory "hamacs/") :publishing-directory ,(concat org-mode-publishing-directory "hamacs/")
:publishing-function org-html-publish-to-html :publishing-function org-html-publish-to-html
:recursive t :recursive t
@ -238,7 +238,7 @@ Ive been committing my literate-style Emacs configuration for years now, and
(add-to-list 'org-publish-project-alist (add-to-list 'org-publish-project-alist
`("hamacs-static" `("hamacs-static"
:base-directory "~/other/hamacs" :base-directory "~/src/hamacs"
:base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|svg" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|svg"
:publishing-directory ,(concat org-mode-publishing-directory "hamacs") :publishing-directory ,(concat org-mode-publishing-directory "hamacs")
:recursive t :recursive t

View file

@ -19,7 +19,7 @@ A literate program for configuring org files for work-related notes.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/org-sprint.org ;; ~/src/hamacs/org-sprint.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -20,7 +20,7 @@ A literate programming file for making Org file more readable.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/ha-org-word-processor.org ;; ~/src/hamacs/ha-org-word-processor.org
;; Using `find-file-at-point', and tangle the file to recreate this one . ;; Using `find-file-at-point', and tangle the file to recreate this one .
;; ;;
;;; Code: ;;; Code:

View file

@ -560,7 +560,7 @@ Of course, since we are dealing with Emacs, any good idea will be assimilated. J
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package pikchr-mode (use-package pikchr-mode
:straight (:local-repo "~/other/pikchr-mode") :straight (:local-repo "~/src/pikchr-mode")
:custom :custom
(pikchr-executable "~/bin/pikchr")) (pikchr-executable "~/bin/pikchr"))
#+end_src #+end_src

View file

@ -19,7 +19,7 @@ A literate programming version for Emacs code to generate and store passwords.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/ha-passwords.org ;; ~/src/hamacs/ha-passwords.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ Configuring Ansible and YAML
;; While obvious, GNU Emacs does not include this file ;; While obvious, GNU Emacs does not include this file
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; /Users/howard.abrams/other/hamacs/ha-programming-ansible.org ;; ~/src/hamacs/ha-programming-ansible.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ A literate programming file for programming in Clojure.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/ha-programming-clojure.org ;; ~/src/hamacs/ha-programming-clojure.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ A literate programming file for configuring Emacs for Lisp programming.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; /Users/howard.abrams/other/hamacs/ha-lisp.org ;; ~/src/hamacs/ha-lisp.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -18,7 +18,7 @@ A literate programming file for configuring Emacs to use [[https://www.haskell.o
;; While obvious, GNU Emacs does not include this file or project. ;; While obvious, GNU Emacs does not include this file or project.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/ha-programming-haskell.org ;; ~/src/hamacs/ha-programming-haskell.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -18,7 +18,7 @@ A literate programming file for integrating the [[https://ocaml.org/][OCaml prog
;; While obvious, GNU Emacs does not include this file or project. ;; While obvious, GNU Emacs does not include this file or project.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/ha-programming-ocaml.org ;; ~/src/hamacs/ha-programming-ocaml.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ A literate programming file for configuring Python.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/ha-programming-python.org ;; ~/src/hamacs/ha-programming-python.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ A literate programming file for configuring Emacs to support the Ruby programmin
;; While obvious, GNU Emacs does not include this file or project. ;; While obvious, GNU Emacs does not include this file or project.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; /Users/howard.abrams/other/hamacs/ha-programming-ruby.org ;; ~/src/hamacs/ha-programming-ruby.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:
@ -48,8 +48,8 @@ While we /could/ use a large project templating system, I keep it simple. For ea
#+end_example #+end_example
For instance: For instance:
#+begin_src sh #+begin_src sh
mkdir -p ~/other/ruby-xp # Change me mkdir -p ~/src/ruby-xp # Change me
cd ~/other/ruby-xp cd ~/src/ruby-xp
mkdir -p lib test mkdir -p lib test
#+end_src #+end_src
@ -66,7 +66,7 @@ Now, do the following steps.
#+end_src #+end_src
3. Create a minimal =Gemfile=: 3. Create a minimal =Gemfile=:
#+begin_src ruby :tangle ~/other/ruby-xp/Gemfile #+begin_src ruby :tangle ~/src/ruby-xp/Gemfile
source 'https://rubygems.org' source 'https://rubygems.org'
gem 'rake', group: :development gem 'rake', group: :development
@ -80,7 +80,7 @@ Now, do the following steps.
#+end_src #+end_src
5. Create a minimal =Rakefile=: 5. Create a minimal =Rakefile=:
#+begin_src ruby :tangle ~/other/ruby-xp/Rakefile #+begin_src ruby :tangle ~/src/ruby-xp/Rakefile
task default: %w[test] task default: %w[test]
task :run do task :run do
@ -93,7 +93,7 @@ Now, do the following steps.
#+end_src #+end_src
6. Create the first program: 6. Create the first program:
#+begin_src ruby :tangle ~/other/ruby-xp/lib/hello_world.rb #+begin_src ruby :tangle ~/src/ruby-xp/lib/hello_world.rb
# frozen_string_literal: true # frozen_string_literal: true
# The basic greeting class # The basic greeting class
@ -117,7 +117,7 @@ Now, do the following steps.
#+end_src #+end_src
7. Create the first test: 7. Create the first test:
#+begin_src ruby :tangle ~/other/ruby-xp/test/hello_world_test.rb #+begin_src ruby :tangle ~/src/ruby-xp/test/hello_world_test.rb
require 'test/unit' require 'test/unit'
require_relative '../lib/hello_world' require_relative '../lib/hello_world'
@ -142,7 +142,7 @@ For projects from work, I have found we need to isolate the Ruby environment. On
#+end_src #+end_src
A better solution is to create a container to hold the Ruby environment. Begin with a =Dockerfile=: A better solution is to create a container to hold the Ruby environment. Begin with a =Dockerfile=:
#+begin_src dockerfile :tangle ~/other/ruby-xp/Dockerfile #+begin_src dockerfile :tangle ~/src/ruby-xp/Dockerfile
## -*- dockerfile-image-name: "ruby-xp" -*- ## -*- dockerfile-image-name: "ruby-xp" -*-
FROM alpine:3.13 FROM alpine:3.13
@ -177,7 +177,7 @@ A better solution is to create a container to hold the Ruby environment. Begin w
#+end_src #+end_src
Next, create a =.envrc= in the projects directory: Next, create a =.envrc= in the projects directory:
#+begin_src sh :tangle ~/other/ruby-xp/.envrc #+begin_src sh :tangle ~/src/ruby-xp/.envrc
CONTAINER_NAME=ruby-xp:latest CONTAINER_NAME=ruby-xp:latest
CONTAINER_WRAPPERS=(bash ruby irb gem bundle rake solargraph rubocop) CONTAINER_WRAPPERS=(bash ruby irb gem bundle rake solargraph rubocop)

View file

@ -19,7 +19,7 @@ A literate programming file for configuring Rust with Emacs.
;; While obvious, GNU Emacs does not include this file or project. ;; While obvious, GNU Emacs does not include this file or project.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; /Users/howard.abrams/other/hamacs/ha-programming-rust.org ;; ~/src/hamacs/ha-programming-rust.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ A literate programming file configuring Emacs.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; /Users/howard.abrams/other/hamacs/ha-programming-scheme.org ;; ~/src/hamacs/ha-programming-scheme.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ A literate programming file for helping me program.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/ha-programming.org ;; ~/src/hamacs/ha-programming.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:

View file

@ -19,7 +19,7 @@ A literate configuration for accessing remote systems.
;; This file is not part of GNU Emacs. ;; This file is not part of GNU Emacs.
;; ;;
;; *NB:* Do not edit this file. Instead, edit the original literate file at: ;; *NB:* Do not edit this file. Instead, edit the original literate file at:
;; ~/other/hamacs/ha-remoting.org ;; ~/src/hamacs/ha-remoting.org
;; And tangle the file to recreate this one. ;; And tangle the file to recreate this one.
;; ;;
;;; Code: ;;; Code:
@ -296,7 +296,7 @@ Perhaps a Unit test is in order:
#+begin_src emacs-lisp :tangle no #+begin_src emacs-lisp :tangle no
(ert-deftest ha--terminal-name-from-dir-test () (ert-deftest ha--terminal-name-from-dir-test ()
(should (should
(string= (ha-shell--name-from-dir "~/other/hamacs/") "Terminal: hamacs")) (string= (ha-shell--name-from-dir "~/src/hamacs/") "Terminal: hamacs"))
(should (should
(string= (ha-shell--name-from-dir "~/work/foo/bar") "Terminal: foo/bar")) (string= (ha-shell--name-from-dir "~/work/foo/bar") "Terminal: foo/bar"))
(should (should