Tag Archives: Emacs

Building ELPA Packages

I’ve written about ELPA from the user’s viewpoint a couple of times. If you’re an Elisp developer and want to get your project into ELPA or Marmalade, Nic Ferrier has a nice post that details the steps. This is a … Continue reading

Posted in General | Tagged | 1 Comment

Malware Prophylaxis

After last week’s malware outbreak at Irreal I’ve been thinking about ways to prevent another episode. For those who haven’t been following along, someone managed to add a line of obfuscated PHP to the index.php file that gets things going … Continue reading

Posted in General | Tagged , | 5 Comments

Syncing With Git Repositories

Last month, I wrote about how I keep my two main machines in sync using git and how, after doing a git pull, I use a bit of Elisp to automate the reverting of my open buffers. After automating the … Continue reading

Posted in General | Tagged | 7 Comments

Using Expand-Region

Back in January I wrote about Magnar Sveen’s expand-region package that he described in Emacs Rocks #9. I recently loaded the code with ELPA and have been using it for my day-to-day work. I really like this package. It’s extraordinary … Continue reading

Posted in General | Tagged | Leave a comment

Working With Rectangles

Xah Lee has a nice updated post on working with rectangles and some other loosely related matters. Every time I see these commands I think how useful they are and then promptly forget about them. I’m going to make an … Continue reading

Posted in General | Tagged | 1 Comment

Searching for Blog Posts by Title

Last year I wrote about how I search for a blog post’s org file by the post’s title. That involved bringing up a dired buffer for the directory containing the source org files and doing a dired-do-search for a regular … Continue reading

Posted in Programming | Tagged , | Leave a comment

Anatomy of an Exploit

As I wrote yesterday, someone hacked the Irreal WordPress installation causing it to inject JavaScript into pages served by the blog. Here’s a copy of the hacked index.php file: <?php eval(base64_decode(‘JGlwPSRfU0VSVkVS /* elided */ );?> <?php /** * Front to … Continue reading

Posted in General | Tagged , | 5 Comments

Shift Select Mode

I’m probably the last Emacs user to discover this but here’s a nifty trick that I learned today while trawling through some of Magnar Sveen’s .emacs.d files. If you hold down the shift key when moving the point, the region … Continue reading

Posted in General | Tagged | 1 Comment

Moving and Returning

Xah Lee asks what’s the best way to jump to another position in a buffer and then return to the original point? Emacs users know a lot of ways of doing this. We can, for example, use 【Ctrl+s】 to move … Continue reading

Posted in General | Tagged | 5 Comments

Linum-mode

This is another note to myself. Recently I was examining the internal structure of the decimal expansion of a number. In order to do this, I put the decimal representation of the number in a buffer and did a query-replace-regexp … Continue reading

Posted in General | Tagged | 3 Comments