emacs as my standard text editor. When someone sends me a mail attachment that contains text (for example a LaTeX file
*.tex), Mail does not know how to open it and asks me to select an Application for opening. A Finder window pops up listing all the Applications installed, some of which are text editors, e.g. TextEdit.
emacs program lives in
/usr/bin/emacs, but the
/usr directory is not visible by default in Finder. After some Google searching, I found that executing a
sudo chflags nohidden /usr
will make the
/usr directory visible in Finder. I can then navigate to
/usr/bin and see
emacs in that directory, but it is grey'ed out and not selectable.
How do I select a non-Applications (i.e. /usr/bin/emacs, /usr/bin/vim, /usr/bin/gs, etc.) program to use for opening Mail attachments?