Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 29602

Questions relating to commands for passing single command lines to shell sub-processes, running a shell interactively with input and output to an Emacs buffer, and for running a shell in a terminal emulator window.

2 votes
2 answers
702 views

Starting a shell then cd to a specific directory

I want to go to a specific directory after I start a shell. … So I put these lines in my .emacs file: (shell) (shell-command "cd C:/MyStartUp/ThisDirectory") (setq default-directory "C:/MyStartUp/ThisDirectory") However, whenever I start emacs, the shell ends up …
tony's user avatar
  • 113
0 votes

Emacs shell exits after executing a cygwin command

The default shell-file-name is changed for my newly installed emacs 29.4, I have to explicitly asking emacs to use the bash.exe by (setq shell-file-name "C:/cygwin64/bin/bash.exe") Otherwise, it shows … a nuisance, I can also ignore it and my shell stays! …
tony's user avatar
  • 113