Questions tagged [terminal-emacs]

Emacs can run entirely inside of a TTY terminal, by using the -nw flag at startup, or by compiling emacs with the --without-x flag.

265 questions
50
votes
4 answers

Restart emacs from within emacs

I restart my emacs a lot. All I want to do is create a function that kills the current emacs, only to spawn a new one in it's stead. Ideally, this would also work in a TTY.
PythonNut
  • 10,363
  • 2
  • 30
  • 76
23
votes
2 answers

What was Emacs like back in the 80s?

I've looked all around for footage of ancient Emacs distributions, but to no avail. The source code for Emacs 16.56 from July 15, 1985 is available on Github, but under no circumstances could I manage to build it. The original Stallman Emacs paper…
Daniel
  • 3,653
  • 18
  • 42
11
votes
1 answer

Is there a way to detect that emacs is running in a terminal?

When I run emacs in a terminal (using the -nw option) my theme is broken and some key-bindings don't work. So, I need to disable the theme and some keybindings when running in a tty. Is there a way to do that?
Nishant
  • 113
  • 1
  • 6
7
votes
2 answers

Is there an Emacs package for terminal emulation?

Would it be possible to download a GUI version of Emacs which includes its own terminal emulator for any terminal-related commands like executing shell scripts? I.e., it would not use the local system's terminal but would include its own sandboxed…
6
votes
1 answer

Disable line highlighting in terminal

I'm currenty using emacs line highlighting and I found it useful when doing my work in GUI version of emacs. However, I find it uncomfortable to have such mode during my work in terminal. The color of higlight there makes current line being edited…
threaz
  • 163
  • 5
6
votes
1 answer

0;95;0c escape code is inserted with typeahead in terminal emacs

Whenever I start the terminal emacs and there is typeahead (i.e., I start typing before emacs starts), the escape code 0;95;0c gets inserted into the buffer. For example, if I run sleep 3; emacs -Q test and type qwerty while the sleep is happening…
asmeurer
  • 1,572
  • 12
  • 32
2
votes
1 answer

Use emacs syntax coloring when not in emacs

Emacs in -nw mode colors source code files, in this screenshot you see how emacs colors the .rb file I opened. Over the weeks/months I've gotten used to the coloring. Despite how hard I try, there always comes a time when I'm not in emacs, and I'm…
american-ninja-warrior
  • 3,903
  • 2
  • 24
  • 44
2
votes
1 answer

Stop emacs from redrawing display

I'm using emacs from a terminal, and have noticed that certain commands make the terminal screen flicker when I use them. Notable commands are evil mode's recenter-top-bottom and xref-find-definitions This must surely be possible, as…
Vent
  • 77
  • 5
1
vote
1 answer

Can't change emacs console/terminal theme (emacs -nw)

I'm using base16-theme package to load my GUI theme and it works fine. However my console theme is completely random (launched with emacs -nw). It doesn't match (not even close) with the GUI theme and frankly I'm not sure what theme it is. Pic 1…
gccallie
  • 21
  • 4
1
vote
0 answers

find out name of terminal device emacs was started from

When I am running Emacs from a terminal, how do I find out the tty device name from inside Emacs? I first thought that it can be done with M-x shell-command RET tty RET, but this does not work: instead of, e.g., /dev/tty1, I get not a tty.
toomas
  • 183
  • 6
1
vote
1 answer

Why can I not run (text-scale-increase 2) in emacs 26.1 running in terminal?

How come, when running (text-scale-increase 2) from the scratch buffer in an emacs instance running in a terminal, nothing happens besides a counter in the status-bar increasing? In particular, nothing happens to the font size. When doing this in…
larango
  • 13
  • 2
1
vote
0 answers

Emacs wrapping lines that are exactly 80 characters long in a 80x24 terminal

Using a 80xN terminal, I'm seeing that lines that are exactly 80 characters long are wrapped and the 80th character is shown on a separate line: Is there some way to stop emacs from wrapping lines that are exactly 80 chars long? (Or rather, exactly…
1
vote
1 answer

Managing daemons with emacs

Every morning I have the tedious task of staring a dozen or more service on my macOS. During the day I might want to stop/kill a few of them Some services error out on startup. I would like to inspect the stdout/stderr. Sometimes I want to tail the…
american-ninja-warrior
  • 3,903
  • 2
  • 24
  • 44
1
vote
1 answer

all-the-icons - weird icons after update

I recently updated my emacs packages, after this, all-the-icons change its icons. Now, that's how they look Why a .md file icon is a wheater icon? How I can go back to my previous icons?
cactus
  • 55
  • 6
1
vote
0 answers

Why is this function working properly in GUI-Emacs, but not in terminal Emacs?

Setup: Xubuntu 16.04, GNU Emacs 25.1.50.2 I have the following function defined. (defun sudo-edit (&optional arg) "Edit currently visited file as root. With a prefix ARG prompt for a file to visit. Will also prompt for a file to visit if…
ReneFroger
  • 3,850
  • 23
  • 66
1
2