From db51a66d8c2b3e3b60366af08d65c3723ad4b17b Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Tue, 29 Sep 2026 11:36:13 -0700 Subject: [PATCH] Minor bugs Including increasing the GC value, and dropping the Fish shell package. --- bootstrap.org | 6 +++--- ha-general.org | 2 +- ha-org-literate.org | 17 ++++++----------- ha-programming.org | 10 ---------- initialize | 2 ++ snippets/org-mode/split-org-block | 1 + 6 files changed, 13 insertions(+), 25 deletions(-) diff --git a/bootstrap.org b/bootstrap.org index 735437d..317b82f 100644 --- a/bootstrap.org +++ b/bootstrap.org @@ -6,7 +6,7 @@ A literate programming file for bootstraping my Emacs Configuration. #+begin_src emacs-lisp :exports none - ;;; bootstrap.el --- file for bootstraping my Emacs Configuration + ;;; bootstrap.el --- file for bootstraping my Emacs Configuration -*- lexical-binding: t; -*- ;; ;; ██████████ ;; ░░███░░░░░█ @@ -51,7 +51,7 @@ Limit garbage collection before startup and then go back to the default value (8 (add-hook 'emacs-startup-hook (lambda () - (setq gc-cons-threshold (* 100 1024 1024)))) + (setq gc-cons-threshold (* 200 1024 1024)))) #+END_SRC ** OS Path and Native Compilation @@ -167,7 +167,7 @@ Much of my more complicated code comes from my website essays and other projects #+end_src * Emacs Server Control -I actually run two instances of Emacs on some systems, where one instance has all my work-related projects, perspectives, and packages installed (like LSP), and my personal instance has other packages running (like IRC and Mail). I need a function that can make that distinction, and based on that, it will set =server-start= appropriately, so that =emacsclient= can call into the correct one. +I actually run two instances of Emacs on some systems, where one instance has all my work-related projects, perspectives, and packages installed (like the Language Server Protocol, LSP), and my personal instance has other packages running (like the Internet Relay Chat, IRC, and Mail). I need a function that can make that distinction, and based on that, it will set =server-start= appropriately, so that =emacsclient= can call into the correct one. #+begin_src emacs-lisp (defun ha-emacs-for-work? () "Return non-nil when the Emacs instance is for work. diff --git a/ha-general.org b/ha-general.org index c57660a..cadfee6 100644 --- a/ha-general.org +++ b/ha-general.org @@ -366,7 +366,7 @@ This expands on my global [[file:ha-config.org::*Bookmarks][Bookmarks]]: #+begin_src emacs-lisp (use-package bookmark-in-project - :bindd + :bind (("C-x r m" . bookmark-in-project-toggle) ("C-x r M" . ha-bookmark-set)) :config diff --git a/ha-org-literate.org b/ha-org-literate.org index 07b0ce5..558de62 100644 --- a/ha-org-literate.org +++ b/ha-org-literate.org @@ -2,7 +2,7 @@ #+author: Howard Abrams #+date: 2024-07-07 #+filetags: emacs hamacs -#+lastmod: [2026-08-05 Wed] +#+lastmod: [2026-09-22 Tue] A literate programming file for literate programming in Emacs Org Files. @@ -19,16 +19,15 @@ A literate programming file for literate programming in Emacs Org Files. ;; ;; While obvious, GNU Emacs does not include this file or project. ;; + ;; *NB:* Do not edit this file. Instead, edit the original literate file at: + ;; ~/src/hamacs/ha-org-literate.org + ;; Using `find-file-at-point', and tangle the file to recreate this. + ;; ;;; Commentary: ;; ;; This file contains a collection of functions to easy some of the ;; sharp edges when doing literate programming in Org files. ;; - ;; *NB:* Do not edit this file. Instead, edit the original - ;; literate file at: - ;; ~/src/hamacs/ha-org-literate.org - ;; And tangle the file to recreate this one. - ;; ;;; Code: #+end_src * Introduction @@ -937,13 +936,9 @@ Let's =provide= a name so we can =require= this file: #+DESCRIPTION: literate programming in Emacs Org Files. #+PROPERTY: header-args:sh :tangle no -#+PROPERTY: header-args:emacs-lisp :tangle yes :comments link +#+PROPERTY: header-args:emacs-lisp :tangle yes #+PROPERTY: header-args :results none :eval no-export :comments no mkdirp yes #+OPTIONS: num:nil toc:t todo:nil tasks:nil tags:nil date:nil #+OPTIONS: skip:nil author:nil email:nil creator:nil timestamp:nil #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js - -# Local Variables: -# jinx-local-words: "parseable" -# End: diff --git a/ha-programming.org b/ha-programming.org index 5c6c8bc..2b01061 100644 --- a/ha-programming.org +++ b/ha-programming.org @@ -1498,16 +1498,6 @@ Integration with the [[https://github.com/bash-lsp/bash-language-server][Bash LS #+begin_src sh brew install bash-language-server #+end_src -*** Fish Shell -I think the [[https://fishshell.com/][fish shell]] is an interesting experiment (and I appreciate the basics that come with [[https://github.com/emacsmirror/fish-mode][fish-mode]]). -#+begin_src emacs-lisp - (use-package fish-mode - :mode (rx ".fish" eol) - :config - (ha-auto-insert-file (rx ".fish") "fish-mode.sh") - :hook - (fish-mode . (lambda () (add-hook 'before-save-hook 'fish_indent-before-save)))) -#+end_src * Technical Artifacts :noexport: Provide a name to =require= this code. #+begin_src emacs-lisp :exports none diff --git a/initialize b/initialize index 9650d1a..067bd4c 100755 --- a/initialize +++ b/initialize @@ -115,6 +115,8 @@ cat > "$HAMACS_DEST/init.el" <