1
vote
2answers
23 views

How to remove file modification tracking on an Emacs buffer?

I have a *shell* buffer in Emacs where I get a Linux command line shell interface. On occasion, I wish to save the buffer's contents to disk for future reference were my session to exit and once ...
1
vote
1answer
16 views

How can I run `M-x compile` under a particular shell in emacs?

I've a piece of software that can only be compiled under my-weird-sh. I like to use some-better-sh in my day-to-day work, so that is my login shell (via chsh). This changes the shell in Emacs to ...
0
votes
1answer
65 views

How can I have Emacs window(s) and cygwin shell running simultaneously on Windows?

I have Cygwin working with Emacs 24.3.1 on windows 8.1 with Emacs downloaded from the Cygwin installation, however I can't use Emacs and the Cygwin shell at the same time or open up multiple Emacs ...
1
vote
0answers
206 views

Using the msysgit shell in Emacs for windows

I am relativley new to Emacs and am trying to setup emacs, to allow the following command to open the msysgit shell. M-x bash-shell I have added following snippet to my init.el. (defun bash-shell ...
2
votes
0answers
86 views

How can I get emacs 24.* under windows to autocomplete paths in shell buffers using “\” instead of “/”?

See How can I get emacs under windows to autocomplete paths in shell buffers using "\" instead of "/"? I use emacs on windows 7, when calling M-x shell, emacs opens a DOS-Shell. ...
1
vote
2answers
413 views

Why do random characters appear in terminals in Windows?

I've been programming on Windows for a few years, and there has been an issue that is becoming increasingly frustrating as I have really started to use various terminals in Windows for my development ...
0
votes
1answer
221 views

Emacs, Zsh and Ansi-Term — weird chars

My issue is illustrated in the follow images: This is the visual representation I get in my iTerm of my Zsh shell, with the same font as used in Emacs: This my my Emacs output using ansi-term: ...
2
votes
1answer
235 views

How to save shell history from emacs and use it in terminal?

I use emacs for almost everything, but when I run shell M-x shell and then exit from emacs, the history is not saved, I've tried (savehist-mode 1) for this purpose but it doesn't seem to work, is ...
1
vote
4answers
248 views

Emacs tramp mode - filename auto complete doesn't work

I am using tramp mode in Emacs to edit files over ssh. But the problem is that on remote shell I have aliased ls as "ls --color". Tramp uses ls for auto completion and it is unable to parse color ...
0
votes
1answer
86 views

Emacs always starts shell in home directory with Windows 7

Running GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) on Windows 7, the shell command (M-x shell) always creates a DOS box with the home directory. I've seen in other questions/answers that the ...
1
vote
1answer
92 views

Losing functionality when customizing eshell-prompt-function for emacs

I wanted to suppress the current working directory from the prompt for the eshell like i do on the commandline because it takes up a lot of screen space. Using C-h v i check that the default value is: ...
0
votes
1answer
185 views

How to customize the eshell prompt?

How can I customize the prompt of eshell? Specifically how can I prevent it from showing the full current path?
0
votes
1answer
250 views

erlang-shell mode in Emacs doesn't show the error_logger error

I like Emacs and Erlang too; I have set-up the erlang-mode and distel properly. In my project,when dealing with the log,it doesn't show the =ERROR REPORT==== 15-Sep-2012::14:09:30 === in the ...
0
votes
3answers
106 views

Emacs and Shell in the same window?

Just wondering if there is any way to put emacs and shell in the same window. Like split the shell in to two parts, one for shell it self, the other one for emacs. Or is there any way to switch the ...
3
votes
1answer
394 views

How to specify for emacs tramp which remote shell to open?

Besides opening remote files, tramp can be used to run a remote shell. Unfortunately, there is a problem. On a local machine i have zsh and on remote server only bash is installed. Issuing M-x shell ...
0
votes
1answer
563 views

using emacs shell with gnu screen?

How can I use a bash shell in emacs (M-x shell) when I am trying to connect restart a GNU screen session (on a remote ssh connection)? When I try it, I get: avilella@remote-machine-002~$ bash ...
3
votes
2answers
167 views

restarting shell process in buffer

In emacs, I often have multiple shell buffers open and use rename-buffer to keep track of them. Sometimes I inadvertently close the shell by hitting too many ^D's, or I'm on a system that ...
6
votes
1answer
209 views

Is there a way of using ctrl-r after typing part of command in bash?

In bash the Ctrl+r command is very useful, I type Ctrl+r whatever and it searchs my history for commands containing the word whatever. But if I type whatever and realize that I would like search that ...
2
votes
1answer
377 views

Messy output in zsh working in emacs M-x shell

I have changed my shell to oh-my-zsh, which is working great in iTerm. However when I open up my Emacs, M-x shell, I see it also changes to zsh, but the output from executing commands is messy: ➜ ...
3
votes
1answer
335 views

Emacs Shell: Reset Command

In bash, I can clear the screen with the clear command and I can clear the whole "buffer" with the reset command. I'm looking to accomplish the reset in Emacs *shell* terminal. Is there a command / ...
6
votes
1answer
2k views

How can I get emacs under windows to autocomplete paths in shell buffers using “\” instead of “/”?

I'm using emacs to work on linux, windows, osx and everything is fine except one annoying problem with shell buffers under windows. Autocompleting filenames would work great (better than standard ...
1
vote
1answer
418 views

Emacs “shell-command-on-region” does not pass STDIN to command if command line contains meta-characters

I'm running Emacs on Windows-XP SP3 GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-07 on SOFT-MJASON When I run a command where the argument contains shell meta-characters, my Emacs region is ...
16
votes
3answers
4k views

How do you run the previous command in emacs shell?

I am in terminal mode on Ubuntu, and I'm running emacs with 2 buffers open, one is a ruby file, and the other is a shell (opened by typing M-x shell ), and when I switch to the shell buffer, I want to ...
1
vote
2answers
2k views

Setting default working directory/drive in Emacs shell on Windows

how can I change a default working directory/drive for shell in Emacs (on Windows)? Normally, shell starts in the same directory as the file in current buffer. However, when my current file is on D: ...
4
votes
1answer
951 views

emacs as a pager?

I am looking for a way to use emacs as my pager command in the shell (for example with man or to scroll the output of an asynchronous command with a large amount of output). I use emacsclient as my ...
4
votes
2answers
634 views

How do I get bash to respect my physical directory structure? (And likewise for Emacs?)

If in bash, I do "set -P" then bash follows the "physical directory structure" when doing "pwd" and "cd .." etc, rather than the "logical one" that might be defined via symlinks. Unfortunately, bash ...
2
votes
2answers
1k views

Emacs shell mode problem

While emacs shell mode when I run ls I get following [0m[01;32mmanage.py[0m [01;34mtemplates[0m these must be manage.py and templates. Why its like that and how can fix it?
1
vote
1answer
133 views

emacs -nw 8 bit meta

I am trying to set console emacs to use 8-bit meta rather than interpreting it as a character. The reason for this is so I can use meta as a modifier in Vim for my own keybindings. So setting xterm to ...