Hot answers tagged

10 votes
Accepted

weird characters in shell mode with zsh

The control sequences ^[[?2004h and ^[[?2004l turn bracketed paste mode on and off. Shell mode doesn't support bracketed paste mode (with these or any other control sequences), so zsh shouldn't try ...
Gilles 'SO- stop being evil''s user avatar
5 votes

Package `exec-path-from-shell` isn't setting PATH variables from `.zshenv` on MacOS

You should remove :defer f, because you don't want exec-path-from-shell to be defer loaded and you are going to use function from it when Emacs starts. Try something like the following (use-package ...
xuchunyang's user avatar
  • 14.2k
4 votes
Accepted

Displaying a second buffer with a shell?

Is it correct to assume that you're new to Emacs? If yes, are you aware of how Emacs manages windows and that the term 'window' does not refer to what you think it does? The concepts 'windows' and '...
Stefan Kamphausen's user avatar
3 votes

sh-script-mode: get [[ ... ]] pair expansion to automatically include whitespace?

You could try smartparens. With the settings below: Pressing [ SPC becomes [ | ] Pressing [ [ SPC becomes [[ | ]] Selecting foo and pressing [ becomes [ foo ] Pressing [ a second time becomes [[ foo ]...
jagrg's user avatar
  • 3,794
2 votes
Accepted

zsh expansion modifiers are treated as comments

You want to look at sh-syntax-propertize-function where it currently uses the regexp "\\(?:[^|&;<>()``\\\"' \t\n]\\|\\${\\)\\(#+\\)" to match those # chars which should not be considered as ...
Stefan's user avatar
  • 26k
2 votes
Accepted

How can i use a different shell in Emacs Shell?

You can explicitly set which shell M-xshell uses by customizing explicit-shell-file-name If your zsh config causes problems with shell you might try M-x term or ansi-term instead which may play ...
Jordon Biondo's user avatar
2 votes
Accepted

TRAMP doesn't know some of the remote commands

Your $PATH settings in your init file are not taken into account per default. Try the following: (add-to-list 'tramp-remote-path 'tramp-own-remote-path) See also the Tramp manual discussing this ...
Michael Albinus's user avatar
2 votes
Accepted

Open file in existing GUI Emacs from shell

Answering my own question; I had a server running that I was not aware of. brew services list After stopping it with brew services stop emacs-plus or brew services stop emacs, I was able to ...
styts's user avatar
  • 121
1 vote
Accepted

Executable image-dired-cmd-create-thumbnail-program not found on Darwin, macOS

This is usually caused by GUI apps on macOS only inherit the default minimal environment variables. You can check this by run M-: (getenv "PATH") and M-: (executable-find image-dired-cmd-...
Tianshu Wang's user avatar
  • 1,706
1 vote

Run latexmk inside z shell instead of shell

I don't think it has anything to do with zsh vs sh. I believe it has to do with subprocessess of emacs not having the path required to find the biber executable, whereas interactive shells apparently ...
NickD's user avatar
  • 25.9k
1 vote
Accepted

Indentation of one-line zsh for loops

If sh-use-smie is set to t the Simple Minded Indentation Engine (SMIE) is used for indentation. As you experience, the sh-mode setup for SMIE does not cover all the alternate complex commands of zsh ...
Tobias's user avatar
  • 32.1k
1 vote

Displaying a second buffer with a shell?

Absolutely. Turn on shell-script-mode/sh-mode in the scriptfile buffer, perhaps switch to zsh with C-c : for sh-set-shell (could change the first line of your script), and maybe mark some lines and ...
p_wiersig's user avatar
  • 1,051
1 vote
Accepted

Emacs incompatible with oh-my-zsh?

I found the problem. As I mentioned in the ticket, I was setting the variable EMACS myself in .zshenv to help setup PATH. As it happens termsupport.zsh also uses this variable name internally. All I ...
Amelio Vazquez-Reina's user avatar
1 vote
Accepted

emacs theme changes when i moved to zsh from bash

Are $TERM environment variables same value ? If its value is different from each other. It causes different looking.
syohex's user avatar
  • 456

Only top scored, non community-wiki answers of a minimum length are eligible