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.

Filter by
Sorted by
Tagged with
6
votes
1answer
302 views

Check if terminal supports Unicode

I would like to use special mark symbols not only in window-system but also in xterm: (setq gnus-summary-to-prefix (if window-system "▒ " "==> ")) What check I should use?
3
votes
2answers
9k views

How can I quit Emacs from within a term within Emacs?

I'm in a situation where I have to ssh into a machine and do all of my coding on there. For a while I would ssh in and then use tmux and emacs -nw mode. Recently, I discovered the term command. Now ...
5
votes
1answer
1k views

Emacs in PuTTY with xterm-mouse-mode: how to paste?

I'm running Emacs under PuTTY and this works better then I expected. But since I sometimes use the mouse to focus the PuTTY window, I turned xterm-mouse-mode on. This way the focus in the text changes ...
1
vote
1answer
154 views

send-string-to-terminal but hide output

I'd like to send some commands to the terminal Emacs is running in, using send-string-to-terminal. However, some terminals don't support the command I have in mind. When this is the case, the command ...
0
votes
0answers
292 views

Change cursor-type in MinTTY

I'd like terminal Emacs to observe the current value of cursor-style when the current terminal emulator supports commands to change the cursor. For example: MinTTY is the default terminal emulator ...
3
votes
3answers
983 views

How do I duplicate the 'effective' theme colors resulting from using terminal Emacs with a transparent background?

I'm running GNU Emacs 24.5.4 on Mac OS X 10.10.5 in Terminal.app. In this (stock) setup, Emacs has a transparent background. With a transparent background, the colors that Emacs uses to display text ...
0
votes
1answer
391 views

Weird keyboard behaviour by Emacs in a terminal [duplicate]

I am having problems to configure my EMACS in -nw mode using linux thorough ssh. I am trying to map Ctrl+Shift+z to redo using undo-tree-redo. I tried the following code (defalias 'redo 'undo-tree-...
0
votes
1answer
474 views

How do I set cursor colours per evil-state in the (non-GUI) text terminal?

In the terminal, (set-cursor-color "red") has no effect, so the only way I can distinguish insert from normal mode under evil-mode is through the <N> or <I> on the modeline. Is there a way ...
1
vote
1answer
294 views

.emacs file issues with org-mode TODO tutorials

I am customizing my ~/.emacs file. Specifically, I am customizing org-mode's TODO list feature to include more tasks. However, I keep receiving the following error: File mode specification error: (...
0
votes
2answers
360 views

Emacs not taking full space inside terminal

Image for description: If you notice carefully, blue background of gnome-terminal is visible below where emacs ends. This probably means that emacs isn't taking full space inside gnome-terminal. How ...
0
votes
0answers
123 views

Emacs (-nw) version 24.4.1 adds escape code to the top of every file, when 24.3.1 doesn't

When I run 'emacs -nw --no-init abc' with emacs version 24.4.1, I always see the same escape codes inserted at the top of the file: "12;rgb:0000/0000/0000". When I run the same command on the same ...
44
votes
3answers
10k views

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.
3
votes
1answer
730 views

Trying to invoke help (CTRL-H) deletes character on terminal

When I press CTRL-H in emacs running on my xterm, then this is interpreted as backspace and the character before the point is deleted. I've found various discussions about the "opposite" issue (...
2
votes
1answer
339 views

'C-M--' on Emacs Terminal on OSX fails with “C-M-_ is undefined”

I'm trying to execute C-M-- from Emacs on Terminal (iTerm2) running on OSX, but I keep getting an error saying C-M-_ is undefined. Any ideas how to workaround this?
3
votes
0answers
269 views

emacsclient doesn't start when visiting a file that is already open

I start emacsclient with emacsclient -a 'emacs-server-start' -nw --socket-name=$TTY, where emacs-server-start is a script that runs emacs --daemon="$TTY" (I use $TTY to get a different client for each ...
16
votes
1answer
8k views

Different theme for -nw (terminal)

I am running emacs (24.5.1) on Mac osx and using the solarized theme. For the gui version, the theme works well. If I run the application with the -nw flag: /Applications/Emacs.app/Contents/MacOS/...
2
votes
1answer
46 views

Previous Line Indenting on RET

It seems that whenever I press RET on my emacs init.el file comment lines that the previous line just randomly indents ~4 tabs. I only have a simple load path (nothing currently in there really except ...
5
votes
0answers
3k views

Restart emacs daemon from within emacs

Very much like Restart emacs from within emacs, except I'd like to do this for an emacs daemon and client. Specifically, I'm interested in the terminal client, but of course being able to restart ...
1
vote
0answers
228 views

C-S-Backspace not working [duplicate]

When using emacs, C-S-Backspace seems to only delete one char and not the whole line. After reading Here I see the text: "C-S-backspace (kill-whole-line) kills a whole line including its newline,...
1
vote
2answers
144 views

Why is my minibuffer scrolling and preventing me from seeing emacs asking me questions?

My new emacs is scrolling minibuffer text so that I can't see simple stuff, like when emacs asks if I want to save changes to a file before exiting. Doing this both in a mac window or in Terminal. ...
0
votes
0answers
41 views

C-S-n and C-= not working in emacs if running within terminal [duplicate]

I am running emacs inside tmux within iterm2 on OSX. For some reason these key bindings do not work properly C-S-n C-= C-+ C-; And some others too that are similar. All of these work when running ...
0
votes
2answers
59 views

Unusual character elements

I have been noticing two rather "strange" text elements in Emacs which occur when I copy text. I am certain they signify something/have a special formatting purpose, but I am unable to find anything ...
1
vote
1answer
873 views

Open “emacs -nw” and running a command from bash

I would like to know if it is possible, with a single command from bash, to open a file with emacs -nwand execute a command in the same time, for example goto-line 20.
0
votes
0answers
99 views

Emacs doesn't recognize Ctrl+2 in a terminal

Emacs version is 24.5.1, terminal is Mintty 1.1.3. When I press C-2 in Emacs it produces M-[ 5 0 ; 5 u key which is very strange because C-1 behaves as expected.
1
vote
1answer
272 views

Problem with meta key in Emacs

I use Emacs in command-line always on my Ubuntu 14.04 machine. And I use two languages frequently. Bengali/Bangla and English. Problem is when I use Bangla, commands with Ctrl as modifier work fine (e....
2
votes
0answers
709 views

How to disable the map from esc to meta?

I installed the oh-my-emacs configuration and try to use emacs in the terminal. oh-my-emacs configuration enables evil-mode in default, and my problem is that, I found esc is mapped to meta, while ...
4
votes
2answers
2k views

Why does the buffer get garbled?

Not sure what's going on here, but if I open a file in emacs (no window mode), and just do a search (ctrl-s), the buffer gets garbled. It fixes itself when I ctrl-l, but that's annoying to have to do ...
0
votes
1answer
382 views

Unable to remap key bindings involving meta under iTerm2

I'm using iTerm2, and I would like to remap some of the meta keys. In my .emacs I have (global-set-key (kbd "M-g") 'goto-line) And in my iTerm2 settings I have both "option" keys set to send +Esc. I ...
14
votes
2answers
8k views

How to use the menu bar in terminal emacs?

I am using emacs on the remote server, and I have no idea how to click on options in the menu bar across the top in this context. Here is a screen capture: For example, I want to click some options ...
2
votes
1answer
164 views

How to find the unicode control string received by emacs for a command?

I usually ssh into a machine at my university and run emacs on screen. I want to figure out what unicode strings code for a particular command ? For example when I changed the preferences in my OSX ...
2
votes
1answer
156 views

Not getting notifications with rcirc-notify in OSX

I'm unable to get any notifications when getting pinged by people, or sending private messages. I'm running on osx and running terminal-notifier works fine. I've also tried to execute rcirc-notify-...
0
votes
0answers
394 views

normal-erase-is-backspace-mode does not work over ssh when included in .emacs

In my .emacs file I have the following line: (normal-erase-is-backspace-mode) to change <backspace> to backwards delete and ^H to help over the terminal. Unfortunately when I use emacs with -...
2
votes
1answer
720 views

Arrow and M-n M-p don't work with company mode in terminal when ESC aborts completion

In a terminal window, I'm finding that company-mode completion doesn't work, whereas it does work in a graphical window. For example a down arrow inserts the text OB and M-n simply inserts n. As a ...
8
votes
4answers
167 views

How can I look up help for a key sequence that I can't type

I know that I can look up help for a key sequence using C-h k <key sequence>, but I use Emacs in the terminal, and my terminal emulator doesn't pass all key sequences through to Emacs. Sometimes ...

1 2 3 4