↓ Skip to main content
  1. Blog/

Remapping Mac modifier keys on Emacs 23.3

·107 words·1 min·
Diego Zamboni
Author
Diego Zamboni

I just switched from Carbon Emacs (which is old Emacs 22.x) to Emacs for OS X Modified on my Mac (which is a Cocoa app, and Emacs 23.3).

One of the unwelcome changes was that the Emacs 'Meta' modifier is now by default mapped to the Option key and not Command as before. But this gave me the opportunity to learn how to map the Mac keyboard modifier keys arbitrarily. I now have the following in my .emacs:

I'm documenting it here just in case someone (or my future self, when I need to redo my configuration at some point) finds it useful.

How to insert screenshots in Org documents on macOS

·378 words·2 mins
As I’m taking notes or writing in Org-mode, I often want to insert screenshots inline with the text. While Org supports inserting and displaying inline images, the assumption is that the image is already somewhere in the file system and we just want to link to it. In this post I will show you how to automate the insertion of images from the clipboard into an org-mode document.

Fixing Emacs problems with the fish shell

·114 words·1 min
I started getting errors from the TRAMP Emacs package because I was using fish as my default shell, and it does not recognize certain standard syntax elements (such as && to separate commands), and Emacs runs subcommands under the default shell. I fixed this by: