Article 4RM9G Used to Emacs? Don't want to open a new instance for small edits in root? Answer: JOE -> jmacs!

Used to Emacs? Don't want to open a new instance for small edits in root? Answer: JOE -> jmacs!

by
Sufferin' Succotash
from LinuxQuestions.org on (#4RM9G)
Hi again,

Just wanted to share my love for another new software discovery thanks to Slackware's pre-installed package set: the JOE editor.

Personally, between Emacs and Vim, I ended up picking Emacs (Vim is great too - that's not what this post is), but I wanted to use the power I had with learning it's keybindings everywhere I needed to edit files, even for small edits as root in the terminal or tty session, without opening a whole new instance of it every time I wanted to do so (which isn't a problem on modern hardware, but to me it seems odd) or invoking an emacs daemon as root only for it to be used once.

Well, JOE is a text editor comes in multiple executables that affect the keybindings that it uses. One of these is called jmacs that uses, you guessed it, Emacs keybindings. I tried them - they work.

So, I created a /root/.bashrc that contains the following:

Code:export EDITOR="jmacs" # takes care of the default editor that the shell invokes, such as in visudo
alias edit="jmacs" # my own variable
alias view="jmacs -rdonly" # "view" is an alias that's set up to use Vim as default - this is the jmacs equivalent commandAnd there you go. I wanted to post this because there doesn't seem to be very many posts out there on the web for JOE, especially praising it, even though it's been around for a very long time and seems to be pretty great.

Thus, here's a +1 from me.latest?d=yIl2AUoC8zA latest?i=vUiJzQn3gTY:EVpgVEP1pIQ:F7zBnMy latest?i=vUiJzQn3gTY:EVpgVEP1pIQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=vUiJzQn3gTY:EVpgVEP1pIQ:gIN9vFwvUiJzQn3gTY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments