Carlo Sala
959b6cf5ee
fix(emacs): do not emit ANSI escape codes in vterm
...
Closes #13067
11 months ago
shuangcui
c8ba08581d
docs: fix typos ( #12284 )
2 years ago
Carlo Sala
ca0acf31ef
fix(emacs): make `alternate-editor` work for emacs >28
...
Closes #11441
3 years ago
Marcus Müller
4c82a2eedf
fix(emacs): fix check for open frames w/ extra output ( #10992 )
4 years ago
Marc Cornellà
c06197ad95
chore: fix comment bulk replace
4 years ago
Curtis Rueden
2d32e9be66
refactor: handle `$0` according to the Zsh plugin standard ( #10518 )
...
For details and rationale, see:
https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
Closes #10518
4 years ago
Marc Cornellà
de76f7cb49
fix(emacs): correctly pass arguments to emacsclient when $2 is stdin
5 years ago
Marc Cornellà
2acae3797b
fix(emacs): assess if there are open frames of the expected type
...
This change looks at the frame type of the open frames ('framep) and
looks if they're of the type requested based on the arguments passed
to emacsclient (-nw/-t/--tty require tty frames, otherwise we need
graphical frames).
NOTE: this code considers anything different than t as graphical
terminals, including MS-DOS types (pc). I don't have such a setup
to test if this is correct.
5 years ago
Marc Cornellà
27dcca5967
refactor(emacs): simplify emacsclient wrapper code
5 years ago
Marc Cornellà
b37114b4d5
refactor(emacs): remove dependency on `require_tool.sh` and clean up code style
5 years ago
Marc Cornellà
02d07f3e3d
fix: use `$USERNAME` guaranteed to always be defined in zsh
...
Fixes #9701
5 years ago
Ivan Dario Piernagorda Peña
fb80eb8e05
emacs: add ansi-term directory tracking ( #9218 )
6 years ago
Eric Dobbs
fc99e6db3e
emacs: support BSD mktemp in emacsclient.sh ( #8351 )
...
Piping stdin to emacs alias on MacOS was breaking (--tmpdir is not
supported in BSD flavored mktemp).
Tested in MacOS 10.14 and debian:buster to confirm it still works in
linux.
6 years ago
akinnane
08da19e3fd
emacs: revert cab1ac6e68 ( #7765 )
...
Revert cab1ac6e68
The change from the above commit breaks opening a new emacs frame if
there isn't a existing frame open.
When emacs is running in daemon mode, there will always be a frame
associated with the daemon, even if there are no visible frames.
The lisp function `frame-list`, will always return 1 frame.
```
emacsclient --eval '(frame-list)'
(#<frame F1 0xa3c680>)
```
When an real frame is open, two frames are reported by the `frame-list`
function.
```
emacsclient --eval '(frame-list)'
(#<frame F1 0xa3c680> #<frame emacs Prelude - ~/oh-my-zsh/plugins/emacs/emacsclient.sh 0xf50e10>)
```
See:
https://emacs.stackexchange.com/questions/44537/extra-frame-in-visible-frame-list-when-started-in-daemon-mode-is-causing-prob
https://emacs.stackexchange.com/questions/18859/dont-let-the-daemon-frame-make-a-file-visible
7 years ago
Marc Cornellà
cab1ac6e68
emacs: use open frame if there is one present
...
Fixes #5779
Fixes #5405
7 years ago
akinnane
25d0a10cda
Revert "Fix emacs client terminal" ( #7597 )
...
Reverts robbyrussell/oh-my-zsh#5714
7 years ago
Martin Nestorov
e09eb23158
emacs: add README ( #7235 )
8 years ago
Lorenzo Bolla
ee96d0cf96
Fix 6840 Check emacsclient version instead of emacs's ( #6841 )
...
This is much faster.
8 years ago
Dariusz Luksza
6fe2028a12
Fix emacs client terminal
...
Fixes #3305
Signed-off-by: Dariusz Luksza <dariusz@luksza.org>
9 years ago
soredake
eb244d9ec0
Update emacs plugin. ( #5201 )
...
- Updated minimal version from 23 to 24.
- Added new aliases that fix unexpected close with -nw option.
- Removed some old aliases.
- Fixed line that detects open frames.
10 years ago
hjpotter92
909fcef046
Fix issue with `dash` as the default `/bin/sh` script executing program. ( #5177 )
...
* `function` keyword removed
* Fixup the `if` statement and operators
10 years ago
Jordan Gwyn
d7c06131a2
emacs plugin tweak to open buffer from stdin ( #5126 )
10 years ago
Jan Ehrhardt
c451ff4bf3
Add check for display list equals nil
...
Emacs returns either a sequence of availbale displays or nil. Checking
nil fixes this script to work as expected.
12 years ago
Tristan Carel
a01b1fefe6
Do not overwrite EDITOR environment variable if already defined.
15 years ago
Tristan Carel
3a408f326f
Comment
15 years ago
Tristan Carel
7066bf7c6b
Fix builtin `ecd' when file path contains space characters.
15 years ago
Tristan Carel
574de93efb
New function `efile`
15 years ago
Tristan Carel
6f1929f822
Fix indentation
15 years ago
Tristan Carel
9b29136ec6
Fix alias `eeval'
15 years ago
Tristan Carel
49c0a1381a
- Fix pass of parameters
...
- Add new function `ecd'.
15 years ago
Tristan Carel
a183bcbc6d
More comments
15 years ago
Tristan Carel
0c032aaf81
Removing master stuff
15 years ago
Tristan Carel
2fba4486bf
Add new plugin emacs, to take benefit of daemon capabilities of emacs >=23
15 years ago