Recent Changes

Updates in the last 90 days

1 | 3 | 7 | 30 | 90 days
List latest change per page only Include minor changes
List later changes RSS RSS with pages RSS with pages and diff



  • 08:46 UTC (new) 2018-12-03 looking-back-p . . . . Marcin Borkowski Emacs has a very useful function looking-at, which says whether the text from the point on matches a given regex. Unfortunately, it modifies the match data, which are global state referring to the last search. Because of that, I often prefer to use looking-at-p, which takes care not to mess with the match data.
  • 08:42 UTC (diff) Comments on 2018-11-19 Font-locking diff blocks in Org-mode . . . . Marcin Borkowski Well, this is what my Emacs outputs when I use commands such as {{{dired-diff}}}, which is what I probably did, and then copied that to a src block.



  • 16:56 UTC (new) 2018-11-26 format-seconds . . . . Marcin Borkowski If you’ve ever done anything UI- and time-related in Elisp (or whatever language), chances are that you did stuff like (defun format-minutes (minutes) "Format MINUTES in a human-friendly way."


  • 08:38 UTC (new) 2018-11-19 Font-locking diff blocks in Org-mode . . . . Marcin Borkowski I sometimes miss a feature in Emacs where I could make a diff of two files (using Emacs built-in dired-diff command, bound to = in Dired, or abo-abo’s diff trick, which I have bound to e in Dired), but have the diff persist (as in, save it to a file). Technically, I can do this, of course, by just calling write-file and saving it to a file (preferably with a .diff extension so that it will open in Diff mode automatically), but sometimes I prefer to save things in my Org-mode file, along with my notes related to the project I’m working on. It turns out that Org-mode has me covered, although there is one minor caveat here.


  • 21:13 UTC (new) 2018-11-11 Poland gained independence 100 years ago . . . . Marcin Borkowski Today we [[|again]] [[|depart]] from the usual topics of my blog. We have a very important day today in Poland – [[|one hundred years ago my country gained independence]] after more than a hundred years of political nonexistence.



  • 14:46 UTC (new) 2018-10-27 Launching terminal in current directory . . . . Marcin Borkowski I am a bit ashamed that I do not always use Eshell – I sometimes rely on a “proper” bash in a terminal. (One possible reason is when I ant to run something that does not play too well with Eshell, like top or watch. I know it is possible to do that in Eshell, using eshell-visual-commands, but it seems I’m too lazy (or still too much accustomed to my usual terminal) to change that. Anyway, it is feasible to want to run a terminal (or any other program) in the current directory from Emacs. It turns out that it is easy to do using async-shell-command.


  • 11:48 UTC (new) 2018-10-22 Running visual commands in Eshell . . . . Marcin Borkowski It is a known thing that running commands that control the terminal like top in Eshell is problematic – Eshell plays well with commands that take stdin in and put stdout out, but any control codes are just displayed verbatim. Happily, there is a way around it.



  • 23:34 UTC (new) Comments on 2018-10-14 Magit and C-u i . . . . Perhaps you could add such a mention to the manual? . . .
  • 17:59 UTC (new) 2018-10-14 Magit and C-u i . . . . Marcin Borkowski Last time I mentioned that I use multiple backup copies of my .env file. One problem with that approach was they they cluttered my Git status (or the magit-status window). I could put the relevant pattern in my .gitignore file, but I didn’t want to bother other programmers in the team with peculiarities of my personal setup.


  • 06:24 UTC (new) 2018-10-06 The version-control variable . . . . Marcin Borkowski As many of us know, Emacs has a habit (annoying for most people, I guess) of making backup copies of files it saves. Happily, it doesn’t kick in in version-controlled files (and most of my files fall into this category nowadays). But there are situations when I actually do want the backup copies.





  • 06:49 UTC (new) Comments on 2018-08-13 A tip on git stash . . . . Magit users should note that they can type L L to toggle the visibility of the margin in the status buffer, which displays dates alongside all of the . . .