Questions tagged [emacs]

A text editor, usually characterized by its extensibility. Often described as "the extensible, customizable, self-documenting, real-time display editor." There is an Emacs-specific SE site for specialized questions.

Filter by
Sorted by
Tagged with
-3 votes
1 answer
41 views

how can i reduce the byte of the code bellow from 146 to 144 need help please [closed]

How can i reduce the byte(memory) of the code: #include<stdio.h> /** * main - Entry Point * Return: Always 0 (success) */ int main(void) { printf("Size of a char: %d byte(s)\n&...
0 votes
1 answer
44 views

Do shells have a command equivalent of the "|" pipe symbol? I need something like that in Emacs org-mode tables

I like to construct commands which use the | pipe symbol in org tables and | symbol messes them up. Do bash et al have a text command that is the equivalent of the symbol? Are there alternative ways ...
  • 7,031
0 votes
1 answer
26 views

EasyPG always asks to pick a gpg key even though epa-file-encrypt-to is set

I want emacs to use one specific key for encryption files. So, when I make a *.org.gpg file and save it, easypg should automatically transparently take the key and encrypt a buffer. Instead, it asks ...
2 votes
2 answers
131 views

How can I edit a row in a 7GB csv file?

I have a .csv file which is 7+ GB and has 30M rows. When I load the file into a database table in SQL Server, it reports the position of a row with some format problem, probably due to some fields ...
  • 95.7k
1 vote
0 answers
26 views

Emacs dired list .(dot) ..(dotdot) first

In short, how do I implement the solution in following question in emacs for use in dired? I cannot comment there, so I started this question. How can I make “ls” show dotfiles first while staying ...
0 votes
0 answers
38 views

Terminal applications don't cover the entire terminal

I've been researching this for a couple hours so far and I can't seem to find a solution that works and isn't 10 years old so I figured I'd ask again. I'm using awesome and Alacritty, and when I use, ...
3 votes
1 answer
133 views

Systemd starts emacs daemon without XAUTHORITY environment variable after upgrading to Fedora 37

Problem I am running Emacs daemon as a user service using Systemd, following the documentation in EmacsWiki. I configured it while using Fedora-36, and everything was working as expected. Once I ...
  • 133
1 vote
0 answers
82 views

Trouble with starting emacs daemon using crontab's @reboot

I'm trying to configure my system to start emacs -daemon when I start the system. So, I've added following line to my crontab. @reboot /usr/bin/emacs -daemon And then when I start my system, It seems ...
  • 450
0 votes
1 answer
180 views

How to change title bar color of emacs in gnome desktop environment

I'm using Gentoo with gnome-42.3. I've set the theme to Adwaita-dark. All the windows turned dark except the emacs. Is there a way to set title-bar-color for a specific application?
  • 956
0 votes
0 answers
124 views

How to run any script after exec-dbus-launch in .xinitrc?

How can I have sh poll_monitor.sh & executed after exec dbus-launch --exit-with-session emacs in my .xinitrc Apparently every line AFTER exec dbus-launch is ignored.
  • 299
0 votes
1 answer
41 views

Open tex file corresponding to an opened pdf file

Suppose I have opened a pdf file (say /path/to/my/file.pdf generated from LaTeX) in evince and want to open the corresponding LaTeX source file (/path/to/my/file.tex) in my emacs editor, I click on ...
  • 17.5k
1 vote
0 answers
48 views

How to run GNU Emacs 28 in firejail with the firefox profile?

I'd like to be able to run GNU Emacs 28 from a Firefox running in firejail, but it gives the following error: emacs: could not load dump file "/usr/libexec/emacs/28.1/x86_64-linux-gnu/emacs.pdmp&...
  • 11.7k
0 votes
0 answers
48 views

Use package manager or pip (or some sort of env) with Doom Emacs?

I know that using virtual environments as much as possible is good practice, however I can't get Doom Emacs packages to work with an environment (Conda in particular). Now I need to install systemwide ...
  • 1
1 vote
1 answer
60 views

How to automate the process to open 3 shells and run 3 commands?

I set up something so that I'd open up 3 shells and run the programs one by one: cd foo/bar ./foo.sh cd foo/bar node bar.js cd foo/bar ruby foobar.rb However, since it is time consuming, so I wrote ...
0 votes
0 answers
173 views

How to make emacs scale when changing text-scaling-factor on gnome?

When I switch screen I do gsettings set org.gnome.desktop.interface text-scaling-factor $size. All my programs are scaling correctly except for emacs (nothing change). I have to restart emacs each ...
  • 141
1 vote
2 answers
323 views

How do I open a file at specific line in a running emacs?

emacs can be run from the command line to open a file at line n with a +n command line argument like so : $ emacs +n file I'd like to do the same from a running emacs instance, either via find-file ...
  • 925
1 vote
2 answers
523 views

What is emacsen-common package?

I was trying to remove emacs and all packages related and almost removed emacsen-common. The output to apt remove emacsen-common is: Reading package lists... Done Building dependency tree... Done ...
0 votes
1 answer
34 views

Emacs escaping getty

I create two virtual serials by socat -d -d pty,raw,echo=0 pty,raw,echo=0 in the specific case, I got /dev/pts/9 and /dev/pts/16 I then start screen on one side, in one X terminal, specifically gnome-...
1 vote
0 answers
263 views

authinfo syntax -- how to include a command in my authinfo file?

The online manual states the following: The format of an authinfo file is based on the .netrc file specification that is used for FTP login. In addition to the .netrc file standards, the authinfo ...
0 votes
1 answer
242 views

emacs ./configure encounters missing function 'tputs' when cross-compiling for arm-linux-gnueabihf

I'm trying to cross compile Emacs for an armv7l system on my main rig through an Arch virtual-box, and so far I've had no issues until the ./configure stage. I've properly set up the build, host, and ...
  • 1
9 votes
1 answer
3k views

How to quit the `mg` editor?

I tried to use one of my Git aliases and accidentally opened the mg editor. I tried a lof of different keys and nothing seemed to close it. I eventually just used ctrlz to to send it to the background ...
  • 243
0 votes
1 answer
66 views

open emacs gui through xlaunch from wsl failed

I was able to open emacs with xlaunch, but somehow it stopped working. I am not familiar with xlaunch. How do I debug this problem? Display 172.27.112.1:0 unavailable, simulating -nw
0 votes
1 answer
95 views

emacs path replacement

I had a old version of emacs, I removed it and install a new one. For this new install I got a gz file, and compiled in my laptop. After a successful installation I got a small situation: If I type: ...
  • 141
1 vote
1 answer
1k views

Update Emacs to the latest version on Linux Mint

I installed Linux Mint 20 on a new machine, and I have the default Emacs version: ➜ ~ sudo dpkg --get-selections | grep emacs emacs install emacs-bin-common ...
1 vote
2 answers
114 views

Move to Midline in Terminal?

I frequently make spelling mistakes in the middle of my commands in my zsh iterm2 (on Macbook). For example, the word "origin" below git push origi my-very-long-branch-name My normal ...
  • 11
1 vote
1 answer
68 views

locate: regex repetition postfix operator doesn't work with --regextype emacs

I have some files whose the names are of the form krita-NN.kra where NN is a number having one to two digits. I wanted to locate them using Emacs regex. However, the repetition postfix operator (\{n, ...
2 votes
1 answer
147 views

How can I change the line numbers column font scale in a specific buffer in emacs?

I am using (global-display-line-numbers-mode) and the code suggested in https://unix.stackexchange.com/a/593889/441805 adapts the line numbers column font scale accordingly to the buffer text font ...
0 votes
0 answers
117 views

How do you read a .txt file with stdin .cc file and output it to your shell? pt.2 [duplicate]

//include file from a large library that gives us the ability to program in //C++ #include <stdio.h> #include <stdlib.h> // int main() { File * fPointer; //fpointer gives direction ...
6 votes
1 answer
2k views

Vim-based alternative for Emacs tramp-mode

I'm currently using vim (actually neovim) as my IDE for writing and executing GNU R-code (using the Nvim-R-plugin, see also https://github.com/jalvesaq/Nvim-R, which serves as my REPL), which works ...
  • 356
2 votes
0 answers
237 views

Thin grey strip inside border when using WSL + GUI App + Vcxsrv

I've been using emacs inside WSL and vcxsrv to display the interface. One small issue I found with this approach is that there's a very thin grey area between the border and emacs's text area. Please ...
  • 3,508
1 vote
0 answers
89 views

Make Emacs load .bashrc / .bash_profile when started by GUI

I wrote LD_LIBRARY_PATH both in .bashrc and .bash_profile. However, if I started emacs in terminal using emacs, LD_LIBRARY_PATH is shown in getenv. If I started it using GUI (installed from apt-get), ...
-1 votes
1 answer
69 views

How to make undo history interoperable between emacs and vim?

Is it possible to share undo history of a file between emacs and vim? I think it can be very useful: for example if your emacs config is broken and you want to quick edit files with vim to repair it.
0 votes
0 answers
305 views

Font issues with text editors on Arch Linux with i3

I've been using Arch for a while now, and had problems with fonts in the past, mainly with firefox and chrome, but I was able to manage those and they look pretty normal. I've been an avid vim user ...
0 votes
1 answer
212 views

VISUAL and EDITOR variables aren't defined

I'm using CentOs 6 and learning about command line editing modes. The VISUAL and EDITOR variables aren't defined in my system and printenv or env commands don't show them. My X terminal starts in ...
  • 101
0 votes
1 answer
33 views

ELisp function to org-todo current clocked task and keep current buffer still

Image that I have a clocked task and I want clock-out it and set the heading to done the same time.Most importantly,I don't want to change my focus on my current buffer,I tried to write a function (...
1 vote
0 answers
44 views

fasd -e emacs not working correctly (snap installation)

fasd is working fine when I use commands such as z (equivalent to fasd_cd -d). However when I try to do something like fasd -e emacs .bashrc I get a funny error message: /snap/fasd/2/usr/local/bin/...
0 votes
2 answers
169 views

Emacs running in mintty via ssh and tmux reports <end> as <select>

Currently I need to code via ssh on a remote machine. I run this from a Cygwin mintty and use tmux to keep emacs running even when I disconnect. Everything is fine, tmux reports TERM=screen, however ...
  • 803
1 vote
0 answers
690 views

Issue with xorg-server on arch

After a arch linux upgrade, it seems that my x-server is really unstable... Launching emacs with exwm does not work anymore. I have installed gnome and it does work (sometimes, very unstable). I ...
  • 11
0 votes
1 answer
663 views

PYTHONPATH not being updated

Currently I use pyenv to have a particular python version installed. Then I use pipenv to create virtual environments for my various projects in python. Currently I have a project structure similar ...
  • 460
4 votes
0 answers
374 views

Emacs via X: how to use better rendered true type fonts?

I have attached a screenshot of Emacs 24.5 running in X-Quartz in a Debian VM. Does anyone know how to configure Emacs to use the better rendered Andale font? For instance, with rendering like the ...
  • 193
1 vote
2 answers
90 views

Is there a Debian package for Emacs that contains the source (.el files) v. the compiled code (.elc)?

In my old versions of Ubuntu I would automatically get the dot-el files for emacs when I installed it. This was very useful because if I wanted a private version of a function (eg compile-without-...
0 votes
2 answers
628 views

Emacs with 24bit terminal support on FreeBSD

I'm trying to enable 24bit support on the terminal (via SSH) on my FreeBSD 12 installation without success. I tried to create a terminfo file with the contents: xterm-24bit|xterm with 24-bit direct ...
1 vote
1 answer
781 views

Error Installing Emacs25 Package on Ubuntu 16.04

I am trying to install Emacs25 package on Ubuntu 16.04 alongside Emacs 24 and Emacs-snapshot (currently Emacs 27.0.50). I ran the following commands sudo add-apt-repository ppa:kelleyk/emacs sudo ...
2 votes
1 answer
55 views

How can I bind multiple keys to a macro?

I want to be able to insert: #+BEGIN_SRC emacs-lisp #+END_SRC By typing <sTab.
0 votes
1 answer
404 views

How to have Emacs daemon persist on remote

My current work workflow includes using PuTTY to SSH into a Linux development box with many users. I use an Emacs daemon to avoid the long startup times when closing my Emacs sessions. However, the ...
0 votes
1 answer
22 views

Where does audio output go in Emacs shell?

I open a shell in Emacs via M-x shell. Then, the line echo -ne '\007' produces no output. However, when I run it in terminal via M-x term, it produces a sound. Is there a way to get shell to have the ...
2 votes
1 answer
348 views

Changing default browser for emacs, Debian insists on using Firefox

In the emacs' .emacs: '(browse-url-browser-function (quote browse-url-default-browser)) I have restarted the system after setting Opera as default browser. When I run: update-alternatives --config ...
0 votes
1 answer
90 views

Ubuntu Emacs 'Invalid read syntax: )' error

I'm trying to rebind the backspace key to actually do backwards delete instead of C-h ? in emacs on ubuntu. In my .emacs.el init file i have (global-set-key [(control ?h)] 'delete-backward-char') ...
  • 3
3 votes
1 answer
3k views

CentOS7 emacs installation error: No X toolkit could be found

When running: sudo ./configure I got error: checking for libXaw... configure: error: No X toolkit could be found. If you are sure you want Emacs compiled without an X toolkit, pass --with-x-...
  • 31
1 vote
1 answer
108 views

sudo emacs doesn't read my elpa packages

Here is my problem on a server running CentOS 7 with emacs 24.3.1.: When I run sudo emacs <protected_file> on a file that I don't have write permissions, emacs doesn't read my .emacs file, nor ...
  • 359

1
2 3 4 5
12