# Recent Changes

## Updates in the last 90 days

2021-04-17

• 13:22 UTC (new) (history) 2021-04-17 Multiple Help buffers . . . . When using many Emacs’ help commands (like C-h f, or describe-function), we are presented with the *Help* buffer. It has some basic navigation commands, most importantly forward-button (TAB), hepl-follow (RET), help-go-back (l) and help-go-forward (r), and usually they are enough for me. Some time ago, however, I had a very specific need which could not be achieved by any of them.

2021-04-10

• 07:52 UTC (new) (history) 2021-04-10 deactivate-mark . . . . Emacs Lisp has two entities called exactly the same – the deactivate-mark function and the deactivate-mark variable. (This is possible at all because Elisp is is a Lisp-2.) As the name suggests, they both serve the same purpose (or rather a similar one), but there seems to be a subtle difference.

2021-04-04

• 03:37 UTC (new) (history) 2021-04-04 Easter . . . . Christ is risen! So, happy Easter for everyone! I’m looking at my Easter post from a year ago, and I stand by everything I said then.

2021-03-27

2021-03-20

• 07:31 UTC (new) (history) 2021-03-20 Using index in the Emacs Info viewer . . . . Recently I was looking how to use the index in the Emacs Info viewer. First of all, let me mention that it is really, really great, and I would love it if more software used this format. Imagine having all MDN Web Docs within Emacs – no network latency, everything available without even touchning the mouse… Or even better – the whole DevDocs project… Now that I think of it, I guess writing a tool to automatically convert it should not be too difficult to write – any volunteers? Anyway, let’s get back to reality. The index.

2021-03-15

2021-03-07

• 07:57 UTC (new) (history) 2021-03-07 A directory name as a command-line parameter for Node.js . . . . Some time ago I accidentally discovered a neat feature of Node.js, which seems undocumented (at least I could not find anything about it in the docs). If you have some npm project in a directory, say /tmp/some-npm-project, and it has the main property in package.json set to some Node.js script, say bin.js, then saying just node /tmp/some-npm-project runs /tmp/some-npm-project/bin.js. It turns out to be quite useful if you have a directory full of various Node.js CLI utilities, each occupying its own directory, with its own package.json, especially considering shell autocompletion. And that’s it for today!

2021-02-27

• 09:44 UTC (new) (history) 2021-02-27 Visible bell in Emacs . . . . Emacs has this habit of beeping when something goes wrong (or when the user presses C-g). Frankly, this is quite useful, since it is an instant feedback, but there are times when I don’t want that behavior.

2021-02-23

2021-02-20

• 09:00 UTC (new) (history) 2021-02-20 Using keyboard macros to emulate query replace . . . . A few days ago, however, I needed to do something I consider really blogworthy, even though the tip I’m going to share today is (surprise, surprise!) very Emacs-centric. I was editing a paper which used italics (with the \emph LaTeX macro) really a lot (more than 100 times). Very many (but not all) of its occurrences were to be changed to quotes, so that e.g. \emph{petrichor} should be changed to ,,petrichor’’ etc.

2021-02-13

• 15:44 UTC (new) (history) 2021-02-13 Copying to clipboard with single spaces . . . . I sometimes need to transfer some text from Emacs to another program, like a web broswer or terminal. A few weeks ago I thought that it would be nice if I could somehow transform that text – mu use-case is changing double spaces (which I habitually put after every sentence, so that I can use Emacs’ sentence-aware commands) to single spaces (which is what most people expect, and some people treat as the only correct option).

2021-02-06

2021-02-01

• 10:07 UTC (new) (history) Comments on 2021-01-25 Generating consecutive dates in Unix shell . . . . 82.21.35.81 You don't need the grep, just use the output formatting in date: for d in seq 0 7 36; do date -d "2020-01-05 \$d days" +"%A%t%d-%m-%Y"; done . . .
• 08:06 UTC (new) (history) 2021-02-01 Copying symlink targets in Dired . . . . I have a short but pretty useful tip today for everyone who uses Dired as their main file manager (which I do, of course). When copying symlinks using dired-do-copy (bound to C by default), Dired copies them as symlinks. Giving a prefix argument of C-u makes dired-do-copy dereference the symlink first.

2021-01-25

• 11:26 UTC (new) (history) 2021-01-25 Generating consecutive dates in Unix shell . . . . It is no surprise for any regular reader that I have a kind of love-hate relationship with the shell. Bash is one of the most terrible languages out there, but sometimes writing a short shell snippet is just handy. This was the case some time ago, when I wanted to loop over several dates.

More...

Filters