↓ Skip to main content
  1. Blog/

Fixing Emacs problems with the fish shell

·114 words·1 min·
Diego Zamboni
Author
Diego Zamboni

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:

  1. Changing my account's default shell back to `/bin/bash`
  2. Changing my Terminal.app preferences to run `/usr/local/bin/fish` when a shell opens, instead of the default login shell:

  3. Log out and back in to have everything reloaded properly.

This does not change my interactive experience at all, while leaving /bin/bash as the default for sub-shells, no only in Emacs but in any other applications that might break because of fish’s non-standard syntax.

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.

Fast translation with Google Translator

·56 words·1 min
via https://medium.com/@mrdoro/fast-translation-with-google-translator-and-mac-osx-817e32233b7a https://medium.com/@mrdoro/fast-translation-with-google-translator-and-mac-osx-817e32233b7a Nice article about how to create a service to automatically translate selected text from any application. I use this all the time, I have a “German-to-English” service bound to Command-Alt-Ctrl-Shift-E, so I can just select text off the screen, press the shortcut, and a window with the translation will pop up. Very handy.