Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [linux]

for Emacs and GNU/Linux operating system-specific issues about compiling, installing, configuring, running, editing, and debugging.

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

How can I set default font in Emacs?

I can't set Inconsolata as default font in Emacs 24.4 Linux. I changed the font in the menu -> Save options. The font changed but after a restart the font is the same as it was by default. Added ...
26
votes
4answers
16k views

Prebuilt Ubuntu Emacs “25.1”

Where can I find pre-built Emacs for what Ubuntu calls emacs 25.1?
19
votes
4answers
1k views

How to set emacs as the default file manager?

Some programs like firefox have buttons that when clicked open a file manager for browsing files. How do I make it to open in emacs with dired mode on Debian Linux?
19
votes
3answers
5k views

Magit, how to use system's ssh agent and don't ask for password

I've googled and read the FAQ and Wiki for Magit, but still unable to figure this out, all I find are answers about Windows... How can I configure Magit to use my running ssh-agent session and don't ...
15
votes
4answers
2k views

Use Super in emacs -nw in linux

I have been struggling to find a simple and direct question to the answer and therefore I have decided to ask here. Q: Is there a way to use Super in Emacs launched in a Terminal in Linux? P.S: I ...
14
votes
2answers
11k views

How to toggle fullscreen in Emacs GUI mode (`Full Screen` option is greyed out in Kubuntu)?

This is such a basic question but I am really at a loss (a google search only revealed solutions for OS X). Until recently, I primarily used terminal mode (which I can make full-screen using my ...
11
votes
4answers
2k views

Problem “<dead-acute> is undefined” appearing when typing Greek stress ( ' )

I started using Emacs and I wrote a text in Greek. The problem is that the stress that is used upon some letters (ό, ύ, ί, ύ) doesn't work! It is usually inserted by pressing the ; (I mean by ...
10
votes
2answers
735 views

Possible to “detach” a child process?

I use browse-url/browse-url-firefox to open links in Firefox from within Emacs 24.5.1 under Linux (Fedora 23) which in essence executes the firefox executable with the URL by start-process. If there ...
8
votes
2answers
415 views

Emacs can't save history of recent visited files opened in current session before shutdown

I have a problem with emacs started as daemon using Systemd. Every shutdown/reboot if I don't stop emacs daemon service manually, the history of recent opened files in current session is lost. I ...
7
votes
1answer
6k views

installing emacs: which x-toolkit?

I am installing Emacs 24.5.0, and I want to install it with X. I am on Fedora. the configuration script cannot find any x-toolkit. How do I find out which one is good for me, and in which folder do I ...
6
votes
2answers
5k views

On Linux why should one choose Lucid over Gtk gui for emacs?

I run Ubuntu 16.04. On searching Ubuntu Software app for Emacs I am presented with two guis, Lucid and Gtk. Which one should I choose and why?
6
votes
4answers
1k views

Emacs cursor color is different in daemon and non-daemon modes

There's some weird stuff I encounter when running Emacs under KDE. Here's how it looks when I run it normally, via the emacs command: If I run it as a daemon, here's what I see: And if I run ...
6
votes
1answer
322 views

Has anyone else encountered gui-get-selection: (error “Timed out…”) bug?

When trying to paste into Emacs from my Linux system GUI, I'm getting a 10-15 second Emacs freeze and: gui-get-selection: (error "Timed out waiting for reply from selection owner") I would post a ...
6
votes
1answer
281 views

xclip hangs shell-command

I like to use the xclip utility to capture the output of commands on the clipboard. However, when I try to use it with shell-command it seems to hang. In a "normal" shell I can run a command such as ...
5
votes
2answers
2k views

how to set environment variables={EDITOR, VISUAL} to prefer running emacs?

my usecase I'm currently running GNU Emacs version=24.3.1 graphically (i.e., under GNOME/X though started from a script invoked from a gnome-terminal running bash) on a Debian Linux. Just now I was ...
5
votes
2answers
523 views

Copy/paste between SSH terminal Emacs and macOS

Suppose you are working in macOS, and you decide to SSH into a Linux box and fire up terminal Emacs. How do you copy and paste between macOS and your SSH terminal-Emacs? Copying and pasting between ...
5
votes
0answers
353 views

How can i make Emacs use the System input method and Language?

Problem : I am using Emacs for general text typing and editing outside my Programming. This requires me to type in local languages of India ( specifically Hindi, Malayalam and Tamil ). I am on ...
5
votes
0answers
855 views

Selecting correct font weight variant (Linux)

Here's a minimal example that does something on Linux (Ubuntu 16.04) that doesn't seem right to me: M-: (set-frame-font "Ubuntu") M-x describe-font <RET> The first couple of lines that Emacs ...
4
votes
1answer
459 views

How to make GUI Emacs use all available space when running maximized on linux?

GUI Emacs running maximized on my Linux (centos7+kde) is not using all the available space leaving some space around the borders, specially at the top and the bottom. Sample of GUI emacs running "...
4
votes
2answers
765 views

how to disable automatic dos mode?

Many versions ago, if you opened a dos-line-end file on Linux you would see the extra ^M codes. Now it automatically recognizes the situation and puts "DOS" in the info bar and hides the extra ^Ms. ...
4
votes
1answer
383 views

how to tell graphical Emacs to shutdown cleanly from tty1?

problem Lately I run GNU Emacs mostly as GUI on X/tty7 (which I'll call "the desktop" as opposed to emacs-desktop) on one of my Debian laptops. Occasionally the desktop hangs, in which case I usually ...
4
votes
1answer
472 views

Terminal warning when starting emacs

If I start emacs from the terminal, emacs will start up with a warning on the terminal: Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct I tried ...
4
votes
0answers
523 views

Emacs frame disappearing

I have an odd intermittent problem with Emacs disappearing from view. I haven't quite figured out the trigger for this. It doesn't happen often and I can't reproduce it on purpose. Sometimes it ...
3
votes
2answers
319 views

How to generate list of hex numbers?

I am using emacs with org mode. Question 1: I want to number a column in a table in hex. E.g. | 0x00 | xyz | .. | | 0x01 | abc | .. | I want to auto generate first column. Any ideas how to do this ...
3
votes
2answers
285 views

Set a title to an Emacs instance running in a terminal

On Ubuntu, I usually open more than one Emacs instances in the same time (for frontend and back development). These instances always by default take the name "Terminal" as a title as shown on this ...
3
votes
2answers
601 views

Dired: Open files by external application in Linux

I want to open several types of files in Dired by different external applications. For example: .doc files with LibreOffice .pdf files with evince .jpg files with pinta etc... How do i configure ...
3
votes
3answers
814 views

Open buffer in a specified frame

Do frames in emacs have a handle the way buffers do? In particular, can I specify that a particular file should be opened in a specified frame? I would like to have two frames where I use one for ...
3
votes
0answers
38 views

string-rectangle command pollutes kill-ring after upgrade to Emacs 25

In Emacs 24 I used to have a workflow for inserting a string into multiple lines at once: Go to the desired position in the first line. Press C-Space to place the mark. Go to the last line (while ...
3
votes
0answers
282 views

Misc-Fixed fonts and font height

I use the Misc-Fixed fonts because I enjoy non-antialiased fonts. They are designed per height, and tolerate shrinking badly. For instance, in the following example, the default font is set to 9x15 ...
3
votes
2answers
166 views

Frame position change using elisp not sticking

Issue I am able to change the frame position using set-frame-position. But the moment I use a function which uses read-from-minibuffer, the frame restores its position to where it was set using the ...
2
votes
2answers
237 views

Does your project use Elisp for build automation?

I'm building a new appliance, linking BusyBox with Tor on top of a minimal GNU/Linux operating system. I'd like to try something different for the automated build infrastructure with this one and ...
2
votes
1answer
251 views

Map a key to act like a combination of modifiers

I've got a keyboard, where pressing M-C-S is uncomfortable (Meta and control are under the thumbs and Shift is on the far end of the keyboard). However, PageUp, PageDown, Home and End are in a very ...
2
votes
1answer
121 views

Make emacs aware of updates to files and directories?

In Ubuntu, when I make change to directories or files outside emacs, it seems that emacs doesn't get the update. For example, C-x C-f can't track the current directory which was just moved elsewhere ...
2
votes
1answer
138 views

How to make the init file compatible with X and console at the same time?

I have customized the .emacs file a little to suit my taste, and it works fine when run in its own window. But when I try to run it in my terminal using the command emacs -nw, it throws up the ...
2
votes
2answers
949 views

can not access melpa packages- hung up at Contacting host: elpa.gnu.org:80

I am trying to access the melpa packages but when typing: package-refresh-contents emacs gets hung up at: "Contacting host: elpa.gnu.org:80" I am completely new to emacs and fairly new to Linux and ...
2
votes
3answers
1k views

Error (initialization): User … has no home directory

I just installed GNU Emacs 23.1.1 on a new machine and copied my ~/.emacs and ~/.emacs.d/ from another machine where I'm running emacs 25.1.1. When I launch emacs it writes Error (initialization): ...
2
votes
1answer
86 views

keybinding to switch to specific application

I'm running Emacs in a GUI, and I like having a keybinding that quickly switches me to a terminal. Yes, I know there's eshell, term, and shell in Emacs, but I still prefer a dedicated terminal ...
2
votes
2answers
2k views

Why does Emacs swap Backspace and Delete on this one machine?

One of my key bindings is not working on one particular machine and I don't understand why. On Ubuntu 14.04, with the emacs24 package version 24.3+1-2ubuntu1, I start emacs -Q (under X) and run (...
2
votes
2answers
113 views

crypto-newbie: how to securely sign outgoing email with `smtpmail` (or simplest alternative)?

I'm running $ cat /etc/debian_version jessie/sid $ uname -rv 3.11-2-amd64 #1 SMP Debian 3.11.8-1 (2013-11-13) $ gcc --version | head -n 1 gcc (Debian 4.8.2-1) 4.8.2 $ emacs --version | head -n 1 GNU ...
2
votes
0answers
42 views

Access Serial Port on Remote System

Is there a nifty emacs command to access the serial port on a remote system?;) I've seen socat, which creates a virtual serial port on the local system, but if emacs can do it directly, without that, ...
2
votes
0answers
40 views

How do I link an email from a webpage to mu4e?

So when I press a link in, for example firefox, it open Emacs mu4e "Compose email" with the receiver attached. I’m on Linux.
2
votes
0answers
77 views

Disable LINUX mode in Emacs

I am using Emacs 25.3 on Mac and when I try to open some linux kernel code, the behavior is different as below: I cannot simply open a C file, but I am prompted for arch each time. Occasionally, ...
2
votes
0answers
214 views

Flycheck c/c++-clang check linux kernel headers

Currently I am working with the linux kernel, but I am struggling trying to check my syntax using flycheck, I already added the path of the headers in the clang-path but it is not enough. Does any of ...
2
votes
0answers
38 views

Pasting unicode from external applications with mouse wheel on Unix

On upgrade from Emacs 24.3.1 to Emacs 25.0.50 pasting unicode from external applications with mouse wheel appears broken. I start emacs -Q and select e.g. title of https://en.wikipedia.org/wiki/...
2
votes
1answer
207 views

Weird message when trying to upgrade all packages

From a previous question of mine, I've included the following function in my .emacs to quickly update all installed packages: (defun endless/upgrade () "Upgrade all packages, no questions asked." ...
2
votes
0answers
930 views

Wrong letter spacing when using certain fonts

I'm using Classic Console font in buffers. Unfortunately for some reason letter spacing is terrible in Emacs while being correct in Konsole and other programs. Text in Emacs: Text in Konsole (using ...
2
votes
0answers
183 views

Appt desktop notification system for org-mode? [duplicate]

I'm on Linux and I've been trying to set up a reliable notification system. E.g I have a task like this: * TODO submit weekly report SCHEDULED: <2014-03-04 WED 16:30> I would like a ...
1
vote
1answer
30 views

C-/ results in backspace in the Linux console

I am using emacs on many machines, and always use C-/ for undo. However, I started working on a Raspberry Pi with Arch Linux recently, using a local text terminal - X is not installed. Here, C-/ has ...
1
vote
1answer
370 views

UNIX config files, load conf-unix-mode

I work a lot with unix config files (i.e the files in /etc in the various linux system) that have no extension. How can I set-up my .emacs file to load conf-unix-mode on those files?
1
vote
1answer
700 views

How to build Emacs for an embedded ARM Linux system

I am trying to build Emacs for an embedded ARM Linux system. Unfortunately, it is proving to be more difficult than I anticipated. I have the device mounted at /mnt/my_device. Now I am not sure ...