Questions tagged [emacs]

emacs is a popular text editor, usually characterized by it's extensibility and often described as "the extensible, customizable, self-documenting, real-time display editor". Now part of the GNU project, it was originally developed by Richard Stallman in the mid 1970s, and development and ongoing extension of it continues to this day.

Filter by
Sorted by
Tagged with
38 votes
5 answers
19k views

How do I enable Emacs keybindings in apps, such as Google Chrome?

Can anyone tell me how to enable Emacs keybind on Chrome? I found some links but they are either not clearly mentioning how to do so or not what I want (I don't want external tools to be run for this ...
IsaacS's user avatar
  • 1,106
15 votes
3 answers
6k views

How can I make running emacsclient from the unity launcher reuse an existing emacs window

If you create an emacsclient launcher by copying a .desktop file (e.g. the Emacs one), it does not behave in the standard Unity launcher manner. It always launches a new window; it doesn't recognize ...
james.ferguson's user avatar
4 votes
2 answers
1k views

window-switching keyboard shortcuts interfere with emacs and cannot be changed in the main keyboard system preferences

As of Ubuntu 16.04, Some emacs key combinations involving Ctrl and Alt conflict with the keyboard shortcuts in Ubuntu. One way to fix this is to go to System settings > keyboards > shortcuts and ...
xdavidliu's user avatar
  • 211
28 votes
3 answers
23k views

How to stop Alt from triggering Global Menu?

I am trying to disable Alt from triggering the global menu when I am using an application (I am using Ubuntu 14.04). My problem is, when I am using emacs, for example, and I hit Alt+h, the help menu ...
fusilli.jerry89's user avatar
23 votes
3 answers
45k views

How to upgrade to the latest Emacs?

I have Emacs 24.3.1 and I'd like to upgrade to the latest Emacs 24.4.x. All documentation that I have visited suggests building from a tarball or source. Is there a reason why there are no package ...
modulitos's user avatar
  • 689
13 votes
4 answers
19k views

Swap caps lock and Ctrl in Ubuntu 13.10

Can anyone explain how to swap Caps Lock and Ctrl keys on Ubuntu desktop under Unity. I use it to avoid emacs pinky.
user2239690's user avatar
12 votes
3 answers
11k views

An alternative to the Super key on an old keyboard

I've got a classic M-series IBM keyboard that I want to put to a use. However, it does not have a Windows (a.k.a Super) key, that I use for many windows-manager-related shortcuts. On top of it, I ...
Little Bobby Tables's user avatar
8 votes
4 answers
9k views

Unable to install Emacs 24 from ppa:cassou/emacs

I followed the following instructions to install Emacs 24 on my machine (borrowed from: http://www.mikeyboldt.com/2011/11/30/install-emacs-24-in-ubuntu/): sudo add-apt-repository ppa:cassou/emacs ...
Kevin Albrecht's user avatar
7 votes
2 answers
8k views

Force apt to remove all emacs*

I have a bug-problem with the apt-packages of emacs: >>Error occurred processing debian-ispell.el: File error (("Opening input file" "no such file or directory" "/usr/share/emacs23/site-lisp/...
wishi's user avatar
  • 641
76 votes
5 answers
86k views

How do I download the command-line emacs instead of the GUI one?

I used sudo apt-get install emacs to download emacs. I expected the command-line emacs to start when I ran emacs but instead the GUI emacs started. How can I download the command-line emacs?
prosseek's user avatar
  • 1,865
43 votes
2 answers
20k views

How to upgrade to Emacs 24.1?

Emacs 24.1 was released recently, and I'm wondering what the recommended way of upgrading Precise's Emacs to it is. I know of the snapshot PPA, but I'd like the final, stable version. I've found a ...
Haakon's user avatar
  • 543
37 votes
4 answers
20k views

Emacs-like keybindings system-wide?

Is there a way to set Emacs-like keyboard shortcuts (at least the subset mentioned below) for the whole OS? This is possible in some apps such as the terminal, Emacs (go figure :) and additionally ...
metakermit's user avatar
  • 2,640
12 votes
1 answer
2k views

What differences are there between the various version of emacs available?

Ubuntu (10.10) offers emacs21,22,23 and emacs-snapshot. What are the differences between them and which one does the emacs package install by default? Also, I presume emacs-snapshot-gtk is the most up ...
Seamus's user avatar
  • 926
12 votes
5 answers
3k views

Emacs keybindings for textboxes in firefox?

I'm so used to emacs that sometimes, when I'm typing something in a textbox in firefox, I sometimes try and do C-p to move up a line. It is seriously annoying to have to cancel a print dialog box ...
Seamus's user avatar
  • 926
11 votes
2 answers
3k views

Emacs C-. not working in terminal

I use GNU Emacs, usually like emacs -nw which launches the terminal version (as opposed to the windowed GUI version). I write school papers in LaTeX so I use flyspell-mode for spell-checking within ...
cg505's user avatar
  • 491
6 votes
2 answers
3k views

Emacs toolbar icons missing in Ubuntu-16.10, struggle to compile emacs24 and 25

I'm writing to see if you have tried to compile Emacs lately. I want to compile emacs-25.1 but hit a segmentation fault. If you wonder why I want to compile, or why I'm asking here, read on... I ...
pauljohn32's user avatar
  • 3,743
6 votes
3 answers
5k views

Why is the meta key is not working when using Emacs?

Suddenly, I am not able to use any combination of meta keys. The Alt key is not working at all in my emacs. Can anyone help me on this issue?
NeoJi's user avatar
  • 133
2 votes
2 answers
2k views

reverting from emacs keybindings in chrome

I enabled emacs keybindings as an experiment using gconftool-2 and setting /desktop/gnome/interface/gtk_key_theme to Emacs. I wasn't happy with it and set it back to Default. jeff@london:~ $ ...
jma's user avatar
  • 194
2 votes
2 answers
2k views

How can I disable Alt-Tab application switching in Cinnamon when a certain program is open?

I use emacs and have fill commands set to Alt-Tab in certain modes and, as a creature of habit, would like to keep it that way. Is there an easy way to disable application switching via Alt-Tab when ...
Dan's user avatar
  • 123
65 votes
17 answers
128k views

Comparizon between text editors in Ubuntu: Vim vs. Emacs vs. Nano [closed]

I was wondering the difference between these text editors and which is best used with Ubuntu? What are each of them good for? Are there better ones?
42 votes
2 answers
39k views

Difference between emacs and emacs-lucid packages

After Ubuntu installation(13.10), I found two versions of Emacs 24 in my software center: GNU Emacs 24(emacs24) GNU Emacs 24(emacs24-lucid) I don't understand what the difference between them is ...
Igor Benikov's user avatar
36 votes
1 answer
30k views

Emacs 25 on Ubuntu 16.10?

Is there any way of installing Emacs 25 or 25.1 on Ubuntu 16.10 without having to compile from source? I want a stable install of Emacs and do not wish to install an unstable or nightly build.
haziz's user avatar
  • 2,929
33 votes
1 answer
29k views

Emacs, which to use?

There seem to be the following versions: emacs23, emacs23-nox, e3, emacs23-lucid, and jove, as choices to download. Where can I find out what the differences are?
Robert Armstrong's user avatar
27 votes
2 answers
22k views

What libraries do I need to install if I want to compile Emacs?

I am trying to compile emacs on Ubuntu 12.04. This is because I want to use Emacs 24.2. However, I am getting the following error. How can I fix it? checking for long file names... yes checking for ...
michael's user avatar
  • 6,059
25 votes
6 answers
12k views

gtk-key-theme Emacs: what keystroke is for select-all?

I prefer emacs keystrokes, but select-all doesn't seem to be part of the emacs vocabulary, or at least, the gtk-key-theme for emacs. M-w isn't working to copy the selected region. What's the ...
Chelmite's user avatar
  • 1,185
22 votes
9 answers
68k views

How to completely remove my Emacs?

I downloaded Emacs source files, and installed it using make. After installing Emacs successfully, I manually removed the downloaded source files to save disk space. Now I want to remove Emacs and I ...
Yang Wenhao's user avatar
16 votes
3 answers
19k views

Set emacs -nw as default editor

When editing files like sudoers, I want to use emacs instead of nano. So I ran this command sudo update-alternatives --config editor And I selected emacs. The only issue is I like emacs in no window ...
gsgx's user avatar
  • 522
12 votes
3 answers
22k views

Compile error: checking for libXaw... configure: error: No X toolkit could be found

Can anyone solve this error? After I configure emacs and run make, i get the following: [jroberts@pc emacs-24.3]$ make make: *** No targets specified and no makefile found. Stop. Here is the output ...
Justin Michael Roberts's user avatar
10 votes
1 answer
5k views

emacs keybindings in ubuntu 12.04 [duplicate]

I am trying to get Emacs-like Keybindings in GTK, Firefox, Chrome, etc. I have followed the directions recommended here (and in lots of places) but to no effect. In other words, I added gtk-key-...
sam's user avatar
  • 213
9 votes
5 answers
4k views

Left Ctrl key not working in VirtualBox

While running an OS in VirtualBox on Ubuntu 10.10 amd64, I find the LCtrl(left-ctrl) key is not being properly detected. (The RCtrl(right-ctrl) is used by Virtual Box, but the LCtrl key should be ...
Mike Goldberg's user avatar
8 votes
2 answers
5k views

How to recover offscreen window after disconnecting second monitor?

I use Ubuntu 14.04 on my laptop at my desk with a second monitor. When I disconnect from the second monitor---without fail---my window for Emacs moves off screen. I can Alt-TAB to make Emacs the ...
davidrmcharles's user avatar
5 votes
1 answer
1k views

Difference between launching an application from a keyboard shortcut vs the terminal?

What I have observed: When I type emacs in gnome-terminal, it launches in the same environment, with variables set in .bashrc. If I use a keyboard shortcut to the command emacs, it opens in an ...
Abe's user avatar
  • 451
4 votes
3 answers
1k views

Why does Ubuntu create a file ending in ~ for every file I create with a text editor like GNU Emacs? [duplicate]

Why does Ubuntu create a file ending in ~ for every file I create with a text editor ? Creating a file with a text editor like GNU Emacs, say myfile, another file called myfile~ is also created. Why ...
Shuzheng's user avatar
  • 425
4 votes
0 answers
608 views

How does gedit detect the encoding of a text file? [duplicate]

How does gedit detect the encoding of a text file when opening it? I notice that gedit can always find the correct encoding when opening a text file of mine, while chardet can often fail to and emacs ...
Tim's user avatar
  • 25.2k
3 votes
1 answer
1k views

Emacs-AUCTeX-Okular

I have Tex live 2011 installed with Emacs 23. AUCTeX and Okular. I have also configured Emacs/AUCTeX to work with Okular supporting forward and inverse search. But. Here's my question. If I have ...
user49890's user avatar
3 votes
1 answer
12k views

how to uninstall emacs from command line?

I have ubuntu 12.04 I installed emacs using below commands. $ apt-get update $ apt-get install emacs Then, as expected, I could find emacs while searching in dash. Next I wanted to uninstall emacs,...
sps's user avatar
  • 437
3 votes
1 answer
1k views

How to enable ALT Gr key as ALT R for Emacs on Ubuntu 16.04?

Emacs is famous for causing tendinitis, but one must remember that Ctrl and Alt come in pairs, at left and right of the keyboard :-) However, in Ubuntu 16.04, Alt R behavior is Alt Gr, messing with ...
JP Ventura's user avatar
3 votes
1 answer
1k views

how to use python3 shortcuts on emacs?

I am new to emacs and I am trying to set python3 as default interpreter. I have installed from software centre the python plugin for emacs. I can run a python3 file going to pyexec-->execute file....
Donbeo's user avatar
  • 501
2 votes
0 answers
349 views

How to disable "Keybindings for desktop switching" in Lubuntu 20.04?

How to disable the shortcut keys for "Keybindings for desktop switching" for Lubuntu 20.04 as described in https://manual.lubuntu.me/stable/F/keyboard_shortcuts.html? I need to use some of ...
tinlyx's user avatar
  • 3,230
2 votes
1 answer
277 views

Shall I install update for my self installed emacs?

Yesterday, I installed the latest Emacs 24.4-1 from its official site by compiling its source code, because the one in repository is older. But today the software update notifies me if I want to ...
Tim's user avatar
  • 25.2k
2 votes
3 answers
6k views

Broken emacs installation

First of all, I am really sorry about behaving like an over smart. But hope you will be able to help me under the circumstance I am right now. I was having some difficulty with emacs in my Ubuntu 12....
rafee's user avatar
  • 181
2 votes
1 answer
309 views

How to use CTRL+HOME in the terminal?

When I use emacs in graphic mode, I can go to the beginning of the buffer with Ctrl+Home. When in bash, emacs won't recognize the combination and only sees the Home. I checked like here and, in ...
Luis's user avatar
  • 243
2 votes
1 answer
1k views

IBus client for GNU Emacs: Installed, but how do I start it?

Having recently moved to Linux/Ubuntu, I'm looking for a good editor, and GNU Emacs seems to fit the bill. One thing I want from a text editor is the ability to handle Unicode Input Method Editors ...
Peter.O's user avatar
  • 24.7k
1 vote
2 answers
3k views

How do I install the latest version of EMACS and pick the appropriate UI?

I'm running the latest Kubuntu (12.04 beta 2) and I would like to run the latest emacs (currently v24). The repos are one version behind. What's the best way to install v24 or later (and avoid future ...
MountainX's user avatar
  • 5,829
1 vote
3 answers
2k views

Gedit error for non sudo - undefined symbol: cairo_surface_set_device_scale (undefined symbol: cairo_surface_set_device_scale)

for some reason I am unable to run gedit as a normal user. I get the following error: heberto@heberto-XPS-13:~$ gedit gedit: symbol lookup error: /usr/lib/x86_64-linux-gnu/libgdk-3.so.0: undefined ...
Heberto Mayorquin's user avatar
1 vote
2 answers
2k views

How to get rid of odd error line when ALT+TAB'ing away from an emacs launched in terminal

I have a very fresh install of Lucid 10.04 64bit, fully upgraded, and with a raft of additional packages added. Amongst them is emacs (23.1+1-4ubuntu7). I habitually launch emacs from a terminal. I ...
vanden's user avatar
  • 1,390
1 vote
1 answer
995 views

Build dependencies for emacs24 could not be satisfied 14.04

I want to manually install emacs24.4 and am following the widely available tutorials for doing so under 14.04 but when I want to install the required build-dependencies: sudo apt-get build-dep ...
Sim's user avatar
  • 296
1 vote
1 answer
1k views

Emacs on phone (e.g. BQ or Meizu)

Is Emacs available on Ubuntu phones such as BQ or Meizu? I heavily use a personalized orgmode (http://www.orgmode.org) as a kind of calendar with a wide range of applications such as running code ...
Tobias's user avatar
  • 161
0 votes
2 answers
2k views

Syntax highlighting changed in Ubuntu 16.04

I recently switched from Ubuntu 15.10 to 16.04. When using Emacs to edit Python code in the Terminal, my syntax highlighting looks very different in 16.04 compared to 15.10 (more shades of purple). ...
user10366's user avatar