Skip to main content

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
25 views

Imitating `emacs /path/to/folder/` behavior with emacs client for project configuration file recognition

To save some time and flashing white screen at startup, I use the emacs daemon and launch a emacs client. However, I have the following project-based workflow that seems to require that I use the non-...
João Diogo Duarte's user avatar
0 votes
1 answer
49 views

emacs M-x & shortcuts

I have been using emacs extensively on Linux for decades now, but could never get shortcuts to work, and never bothered with it. However now, since I get autosave data due to my recent setup, I need ...
diyer's user avatar
  • 1
0 votes
1 answer
24 views

Can Emacs newer than 26.3 in Linux accept custom toolbar icons?

I have developed an Emacs library that includes a toolbar with custom icons. In my preferred configuration I put my icons under the user home directory so that this doesn't change if Emacs is updated. ...
David McCracken's user avatar
0 votes
0 answers
35 views

How do I get-install an older Emacs in Linux

For Linux I use Ubuntu and have always added Emacs from its current repository by apt-get install emacs. I have encountered a bug in the latest version and would like to install different intermediate ...
David McCracken's user avatar
0 votes
0 answers
69 views

Interacting with Okular (backward search)

I use Auctex to edit my LaTeX files. I've configured Auctex to use Okular as my PDF viewer, and I've configured Okular to use Emacs (emacsclient) as its editor. When I compile a source file with C-c C-...
gboffi's user avatar
  • 614
1 vote
1 answer
41 views

Why does shell-mode truncate ps output?

Startup a fresh GTK emacs with no config with emacs -Q. Then run M-x shell. Then at the prompt: $ ps -ef Long commands will be truncated to the frame width, like this: root 526315 2 0 15:...
Joseph Garvin's user avatar
0 votes
1 answer
69 views

AUCTeX cannot find a working TeX distribution (again)

This is DIFFERENT from many other questions about "AUCTeX cannot find a working TeX distribution" because the TeXlive binaries ARE in my Emacs' "PATH" environment variable. I have ...
gboffi's user avatar
  • 614
0 votes
1 answer
73 views

How to use Emacs on MS Windows for UNIX-like commands?

I tried running find-name-dired from one of my dired buffers. I got this: find . "(" -iname "*.cc" ")" -exec ls -ld {} ";" File not found - "*.cc" ...
Rob N's user avatar
  • 649
0 votes
0 answers
24 views

Creating a portable html file using Org-reveal

Description of problem I am new to Emacs and want to write a presentation using Org-reveal that can be opened on other computers. I have read that I need to create a portable file using #+OPTIONS: ...
Tiberius's user avatar
  • 113
1 vote
1 answer
78 views

Picking emoji fonts in Emacs?

How to set the font used for emojis in Emacs? More specifically, how do I set it to Noto Monochrome Emoji Font? https://github.com/googlefonts/noto-emoji/tree/main/fonts https://fonts.google.com/noto/...
01AutoMonkey's user avatar
0 votes
0 answers
113 views

Is there a way to enable OpenType font features (specifically for Monaspace)

I'm currently running Emacs 28.2 on Debian 12 (Doom core v3.0.0-pre, Doom modules v23.12.0-pre). I have checked for harfbuzz support and have ligature.el installed. I recently found Monaspace, and ...
Justin Jung's user avatar
0 votes
0 answers
134 views

Erratic font behavior after upgrading from 27.1 to 29.1 related to --no-x-resources

After upgrading Emacs from 27.1 to 29.1 yesterday (both compiled from source without configure settings except for --prefix) I am seeing erratic behavior of the fonts. The issue vanishes, when I start ...
kdb's user avatar
  • 1,571
0 votes
1 answer
65 views

Emacs Save As with external File Manager Popup -(Linux)

On some of my Linux machines, when I file-save-as, then the system file manager pops up and I can easily select destination. On other Linux Machines, I only get the emacs internal buffer save-as, ...
diyer's user avatar
  • 1
0 votes
0 answers
322 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
59 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
  • 775
0 votes
0 answers
62 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,040
2 votes
2 answers
2k 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
  • 744
0 votes
1 answer
51 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
255 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
  • 4,174
0 votes
1 answer
65 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
332 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,079
0 votes
1 answer
35 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
2k 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
63 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
376 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
294 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
221 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
  • 686
0 votes
3 answers
549 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
67 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
245 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,400
1 vote
1 answer
427 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
302 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
55 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
  • 351
0 votes
1 answer
297 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
381 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
105 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
1k 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
65 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 ...
greenbug's user avatar
0 votes
0 answers
58 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
  • 4,174
0 votes
0 answers
221 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
2 votes
1 answer
185 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
3k 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,707
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
  • 4,174
0 votes
1 answer
598 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
  • 4,174
0 votes
1 answer
473 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
  • 57
0 votes
1 answer
265 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
350 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
  • 4,174
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
209 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
224 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