Skip to main content

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:

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-)
then when highlight code can press c-e replay last macro.

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

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support