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
0 votes
0 answers
73 views

New Frame function fails to size the new frame correctly and prints a Gtk-CRITICAL message. Is this the return of an old bug?

I am using Emacs 29.1. After upgrading Linux to Ubuntu 23.04 the emacs create new frame function (C-x 5 2) seems broken. What happens: when I create a new frame, it shows up so tiny (15x7) that the ...
2square's user avatar
0 votes
1 answer
25 views

Is there a cross platform way of accessing the GUI clipboard from emacs lisp?

I run emacs with a common configuration on osx and linux. I have some custom functions that need to get access to the GUI clipboard. I find interacting with the clipboard a bit of pain - so I've ...
Att Righ's user avatar
  • 725
0 votes
0 answers
32 views

How to completely disable drag-and-drop of file in X11 Emacs?

This issue irks me for a long time... I use Emacs under X11 + KDE (plasmashell + kwin_x11), and Emacs GUI window always robs the dragging event when I am dragging a file from file manager into the ...
kuanyui's user avatar
  • 1,030
0 votes
0 answers
26 views

Tramp from Linux into a Windows machine and use the language development server from the Windows machine with eglot?

I think everything is in the title. I use Linux on a day to day basis. I'm going to occasionally have to edit a C# project that is on a Windows machine. There is a C# development environment installed ...
John Smith Optional's user avatar
2 votes
2 answers
906 views

How to install emacs29 with X11 support?

After installing emacs 29 with yay emacs29-git now on startx I get: You are trying to run Emacs configured with the "pure-GTK" interface under the X Window System. That configuration is ...
jjk's user avatar
  • 749
0 votes
0 answers
62 views

EXWM black screen after startup

The following is my starting script (.emacs.d/exvm/start-exvm.sh) #!/bin/sh # this makes it work in Ubuntu xhost + ## you might need to append the TTY you are working on xinit wmname LG3D # Remap ...
a6i09per5f's user avatar
0 votes
1 answer
46 views

Why is my simple use of shell-command to change a global keybinding in Linux not working?

I want to be able to change a global keybinding by calling an Emacs function. The command in question is: gsettings set org.gnome.desktop.wm.keybindings switch-applications "['<Super>Tab']&...
Orixi's user avatar
  • 5
0 votes
0 answers
191 views

How install Emacs 28 from OFFICIAL REPOSITORY?

Linux Mint 21.3 I installed Emacs like this: apt-install emacs It's success installed ... but it's version 27. But I want to install Emacs 28... from OFICIAL REPOSITORY. Is it possible?
a_subscriber's user avatar
  • 3,884
0 votes
1 answer
62 views

Advanced key reconfiguration under Linux

I'm transitioning to Emacs and trying to reconfigure the layout in a way that reduces the strain on my fingers. One thing I would like to have is the following behavior, which I was told is impossible ...
Alexander Praehauser's user avatar
1 vote
0 answers
182 views

Display AVIF images?

I enabled image-use-external-converter, and I added avif to image-file-name-extensions and AVIF to imagemagick-enabled-types. However, that doesn't do the trick. I would like AVIF files to render in a ...
feklee's user avatar
  • 1,039
0 votes
1 answer
28 views

Compare recursive flattened/"branch view" list of files between two directories in emacs/linux

I have two folders, "old" and "new". The "new" folder includes files from "old" that have been copied into subfolders by a program. [-] Test |--[-] New | |--...
student's user avatar
  • 33
1 vote
2 answers
781 views

How to Install Emacs latest stable release?

I'm trying to install spacemacs on my laptop with elementary os. With apt the latest version I get is 26.3 and I don't understand why because it seems to be far away from the most recent stable ...
JosephMcDonnell's user avatar
0 votes
1 answer
32 views

Building emacs for Alpine Linux info/dir target failure

I am trying to build emacs for Alpine Linux by following the instructions. After installing the relevant packages I run configure --with-x-toolkit=lucid --with-mailutils --enable-gcc-warnings --with-...
Satrapes's user avatar
4 votes
2 answers
161 views

How to see total line number of a file in emacs Mode line?

I really need this but couldn't figure out how to do it. Let's say I open a file in a new buffer which has 200 line of code. Now I'm in the beginning of my file in line 1. And Mode line showing All(1,...
Likhon BaRoy's user avatar
1 vote
2 answers
275 views

Why is my C-. keystroke getting captured?

I have a strange problem that I've observed using GNU Emacs 28.1 on gnome + arch linux. I have a commands bound in my .emacs to C-, and C-., which I wrote a long time ago to jog up and down the buffer....
Brandon Kuczenski's user avatar
0 votes
1 answer
110 views

How to open serial-port with root privileges

When I try to open /dev/ttyUSB0 with serial-term, following permission error shows: Opening serial port: Permission denied, /dev/ttyUSB0 I know I can add my user to a group that has access to /dev/...
Garid's user avatar
  • 565
0 votes
3 answers
359 views

Why can't I type things such as "?" and "/" in Emacs with my macOS running Brazilian Portuguese input but they do work outside of Emacs?

I have been using Emacs on a NixOS (Linux) machine running GNOME as a Desktop Environment. The hardware interface of this system is an American keyboard. Since I am Brazilian, it was necessary for me ...
Pedro Delfino's user avatar
0 votes
3 answers
60 views

After package installation, why Emacs kept retrieving an error message on "Creating directory: Operation not supported" subsequent to normal behavior?

I was using this init file on a NixOS machine. It is important to note that parts of the file were written with use-package and other parts were a legacy from the classic imperative installation of ...
Pedro Delfino's user avatar
2 votes
3 answers
205 views

How can I run additonal linux commands after compiling a latex file

I want to run the following commands when emacs compiles a latex file. FILE="main.tex" # currently opened buffer in the emacs pdflatex -shell-escape -shell-escape -jobname=main_temp $FILE ...
alper's user avatar
  • 1,238
1 vote
1 answer
281 views

Modifying local Google Drive files from Emacs

Recently I've moved from MS Windows to Linux Mint. While on windows, I used to have a code of backup in my init.el file, so that all emacs backups were saved into my local folder DRIVE, that was ...
Rhythmical Diphthong's user avatar
3 votes
1 answer
282 views

How can I have a bracket guide when programming?

What I am looking for is a guide to show what area of the code a set of brackets covers. I am not referring to highlighting the match between parentheses or brackets but instead outlining the field ...
qKweint's user avatar
  • 90
0 votes
0 answers
48 views

Z-Order of Emacs Client Not Layered Top-Most

System & related settings: Fedora 35 (using Cinnamon Desktop) Emacs 27.2 focus mode: "sloppy" with "raise-on-click" disabled Contrary to all other applications, including the ...
Phoenix's user avatar
  • 341
0 votes
1 answer
192 views

How to remove emacsclient and emacsclient.emacs from linux(debian)

I have installed emacs using apt. I have already tried: apt purge emacs apt purge emacs-gtk When I tried to remove emacsclient using apt. It says "E: Unable to locate package emacsclient"...
ganiseh699's user avatar
1 vote
1 answer
311 views

Cannot enable FACE attributes with (custom-theme-set-faces!)

config.el (custom-theme-set-faces! 'doom-ir-black '(mode-line :foreground "blue") ;;'(mode-line :foreground t) ;; also doesn't work ;;'(mode-line :foreground "#000000&...
qKweint's user avatar
  • 90
0 votes
1 answer
81 views

Different behavior between M-! and a terminal?

I'm writing a major mode to interface with a popular but clunky Monte Carlo program. I've also written a script that makes the interface a little more tolerable, and have written the following simple ...
Duncan W's user avatar
  • 113
1 vote
1 answer
824 views

Auto-detect system dark mode or light mode and select themes based on that

Is there a way on linux (Ubuntu 20, Gnome) to detect changes in system's dark mode vs light mode and change emacs themes to a dark theme or light theme that I specify? I see this question Change theme ...
Peeyush Kushwaha's user avatar
0 votes
0 answers
56 views

Get notified through Diary or Org-Mode even when Emacs is closed?

I am using Emacs on my Pine Phone running Mobian (Debian with a phone shell). What I am looking to do is set up Diary or Org-Mode to set up a calendar and get notifications when Emacs isn't running. I ...
Hercislife's user avatar
0 votes
0 answers
57 views

Duplicate headllines in org mode in CentOS

CentOS 7 Emacs 27.1 Magit Here my folder with org mode files: I open current.to.do.org and it success open. As you can see the first headline is ANDROID and last headline is TESTING. Nice. Now I ...
a_subscriber's user avatar
  • 3,884
0 votes
0 answers
137 views

Emacs can't see system fonts on Debian

I have small problem with fonts' availability in Emacs on Debian 10. I have downloaded 'Fira Code' fonts and correctly installed them. They are exists on fc-list and are available in other programs ...
Roy Tancredi's user avatar
1 vote
1 answer
145 views

.svg not exported through org-export + paragraphs not separated after newline

I have been constantly trying to render a logo.svg found in my custom title-page (included in #LATEX:) to match our university title-page for academic writings, but have unfortunately not had success ...
Icy-Thought's user avatar
6 votes
1 answer
2k views

How to get the PATH from the SHELL

When launched at system start-up, the Emacs daemon doesn't pick up modifications to the PATH introduced by shell initialization scripts. Emacswiki suggests to use this function to update Emacs' PATH, (...
Arch Stanton's user avatar
  • 1,555
1 vote
0 answers
2k views

How to install Emacs 26 on CentOS 7?

CentOS Linux release 7.9.2009 (Core) To install Emacs on CentOS I use this: sudo yum install epel-release sudo yum install emacs Nice. But the problem is that... it install old version of Emacs = 24....
a_subscriber's user avatar
  • 3,884
0 votes
1 answer
497 views

How to get package `dired-icon` to show icon images in Dired?

I installed the package dired-icon and restarted Emacs. I then ran M-x dired-icon-mode But no icon shows up in Dired mode and in the minibuffer the following message is shown: Opened text-plain.png ...
a_subscriber's user avatar
  • 3,884
0 votes
1 answer
406 views

Tramp hangs indefinitely when using doas on Linux

Tramp works fine when I try to edit with sudo or ssh, but when I try to edit with doas it will hang (while also maxing out my cpu). Here is some tramp output: backtrace() tramp-signal-hook-...
ryan's user avatar
  • 47
0 votes
1 answer
226 views

User emacs has no home directory

I am an emacs newbie running emacs doom on Linux. I am learning how to use traditional emacs in my free time and have an emacs config file that I want to test out. I launch my traditional emacs by ...
user1801060's user avatar
1 vote
0 answers
326 views

emacs27 : Depends: emacs27-common but it is not going to be installed

I has Emacs 25.3 emacs -version GNU Emacs 25.3.2 Copyright (C) 2017 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms ...
a_subscriber's user avatar
  • 3,884
3 votes
2 answers
2k views

How do I get colour emoji to display in Emacs

Emacs 27 gained support for Cairo for font rendering and this is supposed to let me render emojis but I can't find out how to make it work. I just about managed to set up some fontsets but the emoji ...
Dan Robertson's user avatar
1 vote
1 answer
184 views

How to call Elisp functions from my own implementation of a shell?

I'm writing my own shell which can handle most of the GNU/Linux system calls now. So I was wondering if I could make this shell call Elisp functions too. Is it possible to do so? Is so, how do I get ...
Veera Sivarajan's user avatar
2 votes
1 answer
191 views

Binding XF86Cut and XF86Copy to Emacs Commands

I have a keyboard with dedicated keys for XF86Cut, XF86Copy, XF86Paste. I want to bind these to Emacs commands. The goal is get the usual behavior for cut-and-paste between Emacs, my terminal, and my ...
Charles R's user avatar
  • 121
1 vote
0 answers
49 views

Is the Hyper modifier key usable on non-X11 platforms?

I have a hyper modifier setup, however I was wondering if it's possible to use this on any windowing systems besides X11, for example: macOS Wayland Win32 The terminal.
ideasman42's user avatar
  • 8,406
0 votes
0 answers
32 views

Receive windows manager notifications of display changes

Is there a way for emacs to receive display changes notification from the windows manager? I understand this might be an OS dependent question, so I'm particularly interested in the interaction ...
Damian Nadales's user avatar
1 vote
1 answer
171 views

Spacemacs crashing on start with Ubuntu 20.04

I'm having a problem where every time I open Spacemacs it immediately crashes on Ubuntu 20.04. It was crashing for some actions with Magit and starting a CIDER REPL so I decided to do a fresh install. ...
TomLisankie's user avatar
1 vote
1 answer
47 views

Emacs terminal - the location before the command prompt

My emacs terminal is currently displaying ;0user@Ubuntu: ~user@Ubuntu:~$". This happened after my friend was using my laptop, and is persisting after uninstalling and reinstalling emacs, as well as ...
Andrew's user avatar
  • 21
0 votes
1 answer
38 views

Newbie to emacs. need help

Are there any good resources that anyone can suggest. I rate myself 3 out of 10 when it comes to using editors like vim
betterthananoob's user avatar
1 vote
0 answers
62 views

emacs: Work out which monitor is the primary one

Is there a way to programatically work out which display is considered the "primary" display for X within emacs? I've managed to get a function working that determines if the machine has more than ...
NOP's user avatar
  • 111
1 vote
1 answer
877 views

Does Emacs 26.3 require older version of ImageMagick?

I've just upograded Ubuntu 19.04, which installs imagemagick 7. When trying to start my Emacs install, I see the following error: emacs: error while loading shared libraries: libMagickWand-6.Q16.so.3:...
James's user avatar
  • 111
1 vote
1 answer
164 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 ...
AstroFloyd's user avatar
1 vote
0 answers
284 views

Can emacs on Mac using native window system connect to an emacs server on a Linux system

At this point I believe I am using the emacs version on my Mac that is built by Homebrew and the "stock" emacs on Ubuntu 18.04. I set up emacs server on the Ubuntu host as it is described in Starting ...
pedz's user avatar
  • 365
2 votes
0 answers
127 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, ...
Jason Hunter's user avatar
0 votes
1 answer
64 views

macro execution with i-search fails under Linux and succeeds under windows?

Imagine you've got file with FirstName|LastName| like this : John|toto| Hanz|titi| and want to put the first names at the end of the lines (just an stupid exemple). You may use Macro Recordind for ...
jcm69's user avatar
  • 111