emacs

Master file or many files?

Org-files are great and have some great features, but there are advantages to micro-files, too Discussion on reddit at https://www.reddit.com/r/emacs/comments/13khozp/orgmode_megafiles_or_many_individual_files/ I am beginning to think that this question is more than just taste; there are actual technical consequences here. The question is, should I switch my journal, blog, and/or note-taking method away from big master files with lots of entries to individual files per entry? I am in the process of switching my passwords from a big GPG-encrypted org-file to using the linux password facility1, and I have just discovered denote2, which likewise leverages the system naming/file-searching facilities to organize a knowledge-base in an emacs-agnostic manner.

embark-org file missing in straight build

embark-org.el file missing This issue is a repeat1 of an old, closed one. because I cannot re-open that issue. I have tried the fixes mentioned there and more, but to no avail. What’s wrong when straight builds the embark package, it omits the embark-org.el file which is present in its embark repository directory. This results in blocking errors as I have things that depend upon functions from embark-org. Directions to reproduce (use-package embark)

moving injected styles to a static .css file

Intro prelim: this is a following my css-in-cljs method from my garden css has ascended, which was exceptionally good for the first draft/version of the project but eventually should cede to normal CSS once you are ready for hardening the product. The goal here is to remove all the per-html CSS rules that were so perfect for Dev with a single CSS file that can be called from all the html files in the project and is both far more efficient file-size wise, and the Right Wayâ„¢ to do it for caching and synchronization.

Emacs Personal Development Environment: accessing my notes

Intro Due to the nature of my work, I operate in a variety of environments, databases, and languages. Emacs is very good for this. As an example of this, I just found myself needing to verify if an update had worked on the PostGres database of a remote server. First I logged in to the server with better-shell-remote-open1, and then I sudoed and changed to the postgres user, then I quickly fired up my bookmarked myPostgres.

dragon drag-on with emacs dired

Dragon drag-and-drop The “dragon"1 application (think drag-on) is super handy for #emacs #exwm and probably was made for tiling window managers like iw3m. Go from dired to, eg, Google Drive drag-and-drop. . Footnotes 1 Dragon is available from https://github.com/mwh/dragon

finding and changing a status-bar face

Problem: unreadable font in the mode-line Inquired on Reddit1 I use Bookmarks+, a superb package. But for some reason the status message face when I want to delete a bookmark is night unreadable, and although I can customize all the faces that appear in my actual bookmark list, I cannot figure out how to change that one. So, in principle, how do I find out what face is causing the ugliness when it’s in my status bar (so I can’t do the usual inspecting)?

viewing epub in emacs

Intro I finally arranged my employer to purchase Mastering Emacs1, which provided it in pdf and epub. PDF2 has long since been my standard thanks to being able to view it nicely on all my devices, but I thought I would give epub a try, too. It’s major feature sounds like both emacs-window text resizing, and page memory so it keeps track of where you’ve read. It turns out that the lauded epub mode has some extra steps with the installation.

How to use-package :custom with a variable in an alist?

Intro What I’m trying to do should be obvious from this code: (use-package undo-tree :custom (undo-tree-history-directory-alist '(("." . (concat user-emacs-directory "Undo"))))) But I had trouble getting the syntax right, since use-package is already performing some types of quoting at certain levels. Solution the key was in the proper locations of the syntax-quoote ` and splice , operators. The syntax quote was easy; just swap the reqular quote for it. The splicing operator appears in the location of minimal change, just before the function call that is going to use produce code based on an external variable.

Cloister bell alert notification from Dunst in Guix

Intro In Guix with EXWM I use Dunst for a system alert system. I got my Dunst to have a default audio alert so that when alerts fire, regardless of which of my three monitors I am looking at, I can hear a modest alert noise. I chose the Tardis cloister bell1, a favorite audio of mine. 1. Acquire the sound I located the sound I want on Soundcloud1 and then used one of the several online SoundCloud downloaders2 to grab the file, which came down as an mp3.

Why does this command not print sometimes?

Problem: emacs isn’t passing on the command output My command doesn’t write when it’s executed by a keystroke or by `M-x`, but it does when I just evaluate it with `C-x C-e`. Nonetheless, both command actually WORK – they just don’t print. Why? (defun tsa/change-volume (amount-str) (interactive) (shell-command (concat "pactl set-sink-volume 0 " amount-str)) (shell-command-to-string "pactl get-sink-volume 0") ; "Volume: front-left: 55865 / 85% / -4.16 dB, front-right: 55865 / 85% / -4.