Recent Changes

Updates since 2017-12-31 06:34 UTC

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

2018-04-23

2018-04-21

  • 12:57 UTC (new) 2018-04-21 counsel-rg and symbol at point . . . . Marcin Borkowski Preview: Continuing my streak about counsel, I had a small a-ha moment a few days ago. I often use counsel-rg. It was rather annoying for me that I had to mark the function or variable name at point, copy it to the kill ring, invoke counsel-rg and then yank it back. Until I realized that all this was unnecessary.

2018-04-15

  • 07:18 UTC (new) 2018-04-15 counsel-org-clock . . . . Marcin Borkowski Some time ago I blogged about my Org-mode hydra. It turned out that that a link to that short article was posted to Reddit, and one of the commenters pointed out his counsel-org-clock package.

2018-04-09

  • 20:04 UTC (new) 2018-04-09 counsel-yank-pop . . . . Marcin Borkowski Some time ago I wrote a tip about yanking, and I was informed in a comment that helm has helm-show-kill-ring, which is a replacement for M-y. Turns out that the Ivy suite has counsel-yank-pop, which is a similar thing. Even better, instead of binding M-y to it manually, you can just turn counsel-mode on, and many Emacs commands will be automatically remapped to their counsel equivalents. Nice!

2018-04-01

  • 03:39 UTC (new) 2018-04-01 Easter 2018 . . . . Marcin Borkowski As usual, I’d like to wish everyone reading this a Happy Easter! Yet again we live to witness the miracle of Jesus rising from the dead. Today does not seem to be a good time to live in. Sin is everywhere, the forces of evil seem to dominate, and the world seems to head towards self-destruction. But this is not actually the case. Jesus already defeated Satan, and we only must join the victorious battle. Happy Easter everyone! (And traditionally, I have a gift to all my readers: a Rosary decade for you!)

2018-03-28

2018-03-27

2018-03-26

  • 18:56 UTC (new) 2018-03-26 Human-readable filesizes . . . . Marcin Borkowski A few days ago I needed to display a filesize (in one of the next blog posts I’ll show why I needed this!). The easiest way is to just display the integer – size in bytes – but of course this is not very human-friendly. The “right” way should use whichever units fit the number.

2018-03-18

  • 05:01 UTC (new) 2018-03-18 My Org-mode hydra . . . . Marcin Borkowski I mentioned a lot of times that I am a big fan of Org-mode clocking feature. Even if I clock some things only for myself, I find it useful to learn how much time I actually need for some task. This is often surprising – for example, I think most people are completely unaware of how much you can accomplish by spending five to ten minutes every day on something (notice the “every day” part!). Of course, I want my clocking to be as smooth as possible.
  • 04:59 UTC (diff) Comments on 2018-03-10 A tip on yanking . . . . Marcin Borkowski That's interesting. I don't use helm, but a quick search shows that Ivy has something similar. I'll try it out!

2018-03-10

  • 21:46 UTC (new) Comments on 2018-03-10 A tip on yanking . . . . deusmax Helm has built-in support for browsing the kill-ring when helm-mode is enabled. Even better, bind M-y to helm-show-kill-ring, see . . .
  • 05:14 UTC (new) 2018-03-10 A tip on yanking . . . . Marcin Borkowski I have a few longer posts in the works, but for today I want to share a simple trick. We Emacs users all know and love the kill ring, and many of us know about M-y (yank-pop) and even C-u ... C-y (i.e., a numeric argment to yank). For those who don’t know: C-u 1 C-y is equivalent to plain C-y, but C-u 2 C-y (or just C-2 C-y) inserts the previous killed text (much like C-y M-y), and also marks it as the current one. With higher arguments, it inserts earlier kills.

2018-03-03

2018-02-27

2018-02-25

  • 07:13 UTC (new) 2018-02-25 Simple way of assigning formulas to fields and columns in Org tables . . . . Marcin Borkowski Today I’m going to share a simple trick concerning Org-mode spreadsheet tables. I knew that I could press C-u C-c = in an Org-mode table cell to install a formula in that cell (or C-c = to install a column formula). However, there is a simpler way: you can just type := followed by the formula and press TAB, RET or C-c C-c. (Without a colon, it installs a column formula.) Very handy! (And it was in the manual all along… Once more I learned that at least skimming through the manual from time to time is a good idea!)

2018-02-19

2018-02-12

  • 22:53 UTC (new) Comments on 2018-02-12 append-next-kill . . . . MathiasDahl An alternative, especially after the fact, can sometimes be to use yank-pop, with the default keybinding M-y. Kill some pieces of text. Then yank . . .
  • 20:23 UTC (new) 2018-02-12 append-next-kill . . . . Marcin Borkowski Today I’d like to share a simple trick which I learned a few days ago. It is well-known that if you perform a few killing commands in a row (like C-k or M-d), only one entry is put into the kill ring. Sometimes, however, I want to kill things in different places and still combine them into one kill ring entry. Enter C-M-w, or M-x append-next-kill. It makes the next killing command append its prey to the last kill ring entry.

2018-02-05

2018-01-29

  • 20:52 UTC (new) 2018-01-29 A simple script for shuffling exam questions . . . . Marcin Borkowski As we approach the end of the semester, my free time shrinks to nearly zero. Today I’m only going to share a simple tip. Last week, I prepared an exam. I wanted 10 questions, each one taken from one chapter of the lecture. I also wanted 6 sets (4 for the exam and 2 for the retake). And I wanted no bias (even unconscious) – problem sets for the retake should be neither easier nor harder than for the first attempt etc.

2018-01-22

  • 04:31 UTC (new) 2018-01-22 Info-edit . . . . Marcin Borkowski There was an interesting (and sometimes quite amusing) discussion about Info on the help-gnu-emacs mailing list. Apart from learning that there exist people who do not even want to use the amazing Info mode, I learned that there is a very little known Emacs command Info-edit. It used to be bound to e in Info, but has been deprecated some time ago and now the only way to invoke it seems to be by M-: (Info-edit). It puts the browsed Info buffer into an editing mode; after the edit, you can press C-c C-c and be asked about where to save the edited file.

2018-01-15

  • 05:08 UTC (new) 2018-01-15 Counting LaTeX commands in a bunch of files . . . . Marcin Borkowski I hope that I want bore anyone to death with blog posts related to the journal I’m working for, but here’s another story about my experiences with that. I am currently writing a manual for authors wanting to prepare a paper for Wiadomości Matematyczne. We accept LaTeX files, of course, but we have our own LaTeX class (not yet public), and adapting what others wrote (usually using article) is sometimes a lot of work. Having the authors follow our guidelines could make that slightly less work, which is something I’d be quite happy with. (Of course, making a bunch of university mathematicians do something reasonable would be an achievement in itself.) When I presented (the current version of) the manual to my colleagues in the editorial board, we agreed that nobody will read it anyway. And then I had an idea of preparing a TL;DR version, just a few sentences, where I could mention the one thing I want to get across: dear authors, please do not do anything fancy, just stick with plain ol’ LaTeX. And one component of that message could be a list of LaTeX commands people should stick to. (If you have never worked for a journal or somewhere where you get to look at other people’s LaTeX files, you probably have no idea about what they are capable of doing.) So here I am, having 200+ LaTeX files (there are twice as many, but I had only about 200 on my current laptop), meticulously converted to our template (which means our class and our local customs, like special commands for various dashes or avoiding colons at all costs), and I want to prepare a list of LaTeX commands used throughout together with the information about the frequency of using them.

2018-01-07

  • 20:22 UTC (new) 2018-01-07 A small editing tool for work with AMSrefs . . . . Marcin Borkowski As I mentioned many times, I often edit LaTeX files written by someone else for a journal. One thing which is notoriously difficult to get right when writing academic papers is bibliographies. At Wiadomości Matematyczne, we use AMSrefs, which is really nice (even if it has some rough edges here and there). (BTW, BibLaTeX was not as mature as it is today when we settled on our tool; also, AMSrefs might be a tad easier to customize, though I’m not sure about that anymore…) One of the commands AMSrefs offers is \citelist. Instead of writing things like papers \cite{1}, \cite{2} and~\cite{3}, you write papers \citelist{\cite{1}\cite{2}\cite{3}}, and AMSrefs sorts these entries and compresses runs into ranges (like in [1-3]). The only problem is that most authors have no idea that this exists, and we often have to convert “manual” lists of citations into \citelist‘s. Well, as usual, Emacs to the rescue.

More...

Filters