Thread: Emacs: pipe bash file contents to shell buffer
hello all,
wondering whether there way pass contents of bash script file shell buffer in emacs (23.2). example, if bash file contains single line "ls -al", highlight line, , pressing keybind, have command executed , output shown in shell buffer.
@ possible? suggestions!
okay, able desired functionality through use of keyboard macro.
did following:
then when highlight code can press c-e replay last macro.code:# start recording keyboard macro c-( # copy highlighted text c-w # open shell m-x shell # go end of shell buffer m-x end-of-buffer # paste contents shell c-y # press enter _enter_ # stop recording keyboard macro c-)
see: http://www.emacswiki.org/emacs/keyboardmacrostricks
take note of section on saving keyboard macro .emacs file , assigning keyboard shortcut macro.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Emacs: pipe bash file contents to shell buffer
Ubuntu
Comments
Post a Comment