Created
December 11, 2023 04:01
-
-
Save gmena/4ecdf3c3c10ec14f9df2f3f8ee9616e2 to your computer and use it in GitHub Desktop.
My JOE editor configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JOE editor personal configuration | |
Usually at ~/.joerc | |
Author: gonzalo@mena.com.mx | |
Start with the default configuration | |
:include /etc/joe/joerc | |
Mark whatever Joe thinks is a paragraph | |
:def markpar bop,markb,eop,markk | |
Mark a block starting and ending with an empty line | |
:def markblk rfirst,"\\n\\n",rtn,"i",rtn, | |
ffirst,"\\n\\n",rtn,"i",rtn, | |
markb, | |
ffirst,"\\n\\n",rtn,"i",rtn, | |
uparw, | |
markk | |
Send the current block as if it was typed on the next Tmux pane | |
Useful for sending commands from a notebook, i.e. an editor, | |
to an interactive shell (Bash, MySQL, Python, etc.) | |
:def blk2tmux markb,markk,psh, | |
markblk, | |
blksave,"/tmp/joeblk",rtn, | |
sys,"tmux load-buffer /tmp/joeblk",rtn, | |
sys,"tmux paste-buffer -t +1",rtn, | |
sys,"rm /tmp/joeblk",rtn, | |
pop,tomarkb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment