diff --git a/ha-org.org b/ha-org.org index 884943a..fb734d3 100644 --- a/ha-org.org +++ b/ha-org.org @@ -3,7 +3,7 @@ #+date: 2020-09-18 #+tags: emacs org #+startup: inlineimages -#+lastmod: [2025-04-17 Thu] +#+lastmod: [2025-07-01 Tue] A literate programming file for configuring org-mode and those files. @@ -1056,10 +1056,12 @@ Another flycheck feature is to use [[http://languagetool.org][LanguageTool]] con :ensure t :hook (text-mode . flycheck-languagetool-setup) :init - (setq flycheck-languagetool-server-jar (expand-file-name "~/other/LanguageTool/languagetool-server.jar") + (setq flycheck-languagetool-server-jar (expand-file-name "/opt/homebrew/Cellar/languagetool/6.6/libexec/languagetool-commandline.jar") flycheck-languagetool-server-args (expand-file-name "~/.config/languagetool/config.properties"))) #+END_SRC +Where it can read: [[file:~/.config/languagetool/config.properties][config.properties]]. + And connect it to the chain: #+BEGIN_SRC emacs-lisp :tangle no diff --git a/pud.org b/pud.org index 9373666..7c44742 100644 --- a/pud.org +++ b/pud.org @@ -2,7 +2,7 @@ #+author: Howard X. Abrams #+date: 2025-01-18 #+filetags: emacs hamacs -#+lastmod: [2025-06-08 Sun] +#+lastmod: [2025-06-09 Mon] A literate programming file for a Comint-based MUD client. @@ -128,7 +128,7 @@ Next, open [[file:~/.authinfo.gpg][your authinfo file]], and insert the followin machine howardabrams.com login [name] port 4000 password [pass] #+END_SRC -Now, let’s play! Type =pud-=run= and optionally select a world. If you get disconnected, re-run it, or even =pud-reconnect=. +Now, let’s play! Type =pud-run=, and optionally select a world. If you get disconnected, re-run it, or even =pud-reconnect=. The rest of this file describes the code implementing this project. * Code diff --git a/zshell.org b/zshell.org index 74fca7d..21f781d 100644 --- a/zshell.org +++ b/zshell.org @@ -9,18 +9,20 @@ No, I haven’t eschewed my beloved Eshell, but at work, I’m often required to work with Bash snippets and code. This requires using a standard shell environment. This file includes my notes on Zshell, as well my configuration, when tangled. Do I prefer Zshell over Bash? Just barely. Most of its bells and whistles are quite annoying for some one who spends more time in Emacs that a shell. Still, I like these features: + - Syntax coloring :: helps flag potential errors (but I do /not/ like autocorrect, as that is more often wrong). - Fail/Success Dot :: At the beginning of the command prompt, you can see if the job passed. - Easy completion :: The plugins with OMZ often set up option completion - Auto CD :: This means that =popd= usually just works. - ZBell :: The waiting indicators and alerts on long running jobs is something I love in my eshell setup. -* Configuration -This creates the following files: +Regardless, I keep my shell configuration conspicuously light. +* Configuration +Let’s create the following files, and the configuration below will be injected into one of them: - =~/.zshenv= :: Usually run for every zsh - =~/.zshrc= :: Run for interactive shells … default file when tangling - - =~/.zlogin= :: Run for login shells + - =~/.zlogin= :: Run for login shells … seems to run as often as =.zshrc= #+BEGIN_SRC zsh :exports none #!/usr/bin/env zsh @@ -209,13 +211,15 @@ Configure the plugins, making sure to not use =git=, as the aliases are a pain t - =quick-look= :: To view a file - [[https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/zbell][zbell]] :: To beep when a long running command has completed. Similar to my =beep= command. +To have a plugin /install/, add its name to the =plugins= array variable /before/ we =source= the OMZ script: + #+begin_SRC zsh plugins=(colorize direnv gnu-utils iterm2 macos zbell zsh-syntax-highlighting) #+END_SRC Notice the =iterm2= plugin as well as the =macos= plugins that would be nice to figure out how to make them optionally added (although I believe they check themselves). -The trick is to install some base-level plugins, and then, on my work computer, install more. +The trick is to install some base-level plugins, and then, on my work computer, install more by appending to the =plugins= array variable: #+BEGIN_SRC zsh if hostname | grep AL33 >/dev/null @@ -325,15 +329,28 @@ With these variables defined, we can create simple aliases: #+END_SRC * Aliases -Assuming we’ve installed =lsd= and other colorized features: +Assuming we’ve installed [[https://github.com/lsd-rs/lsd][lsd]], let’s make an alias for it: #+BEGIN_SRC zsh - alias ls=lsd - alias less=cless - alias cat=ccat + if whence lsd + then + alias ls=lsd + fi #+END_SRC -And some abstractions over SSH: +The [[https://github.com/jtdaugherty/ccat][ccat project]] (like bat) adds syntax coloring to text files. For big files, it certainly slows down the output, and I’m wondering if I want these aliases. + +#+BEGIN_SRC zsh + if whence cless + then + alias less=cless + alias cat=ccat + fi +#+END_SRC + +Other alternate improvements, like [[https://github.com/sharkdp/fd][fd]] should be called directly. + +And an abstraction for transitory endpoints over SSH: #+BEGIN_SRC zsh alias ossh="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o loglevel=ERROR"