Questions tagged [emacs]

For questions regarding usage of the Emacs text editor. See also the Emacs Stack Exchange: https://emacs.stackexchange.com

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

deleted gpg key (secret and public) now I can't send emails in emacs mu4e

I lost a password of my key, so I deleted it now emacs complains when I send a mail via mu4e. I deleted my entire ~/.gnupg directory I regenerated the ~/.authinfo.gpg key via epa-encrypt-file I ...
user avatar
  • 101
0 votes
1 answer
11 views

can't run commands in bash invoked from emacs shell on windows

I invoked "shell" which correctly runs cmd.exe and runs correctly. However, when I run bash from within that shell, every command gives an error Microsoft Windows [Version 10.0.22000.739] (c)...
user avatar
  • 1,175
0 votes
0 answers
6 views

Define Emacs command by mode

Fairly simple thing... don't know how to do it: I'd like to bind C-c C-c in Haskell-mode to "xmonad --recompile". How would I go about doing that? If somehow the command could further be ...
user avatar
0 votes
0 answers
14 views

emacs monospace font not aliging when I increase text size

I noticed that although the default emacs (GUI) font claims to be monospaced the columns don't match up (e.g. the 30th column on one row is not vertically aligned with the 30th column of another). It ...
user avatar
  • 101
0 votes
1 answer
24 views

How to draw such a picture(in ascii character, -+>)? [duplicate]

Is it drawn by emacs? +----+ seems like lines of table generated by emacs.
user avatar
0 votes
0 answers
9 views

Opening emacs in the background automatically on tcsh

I can get this working in bash and zsh, but my applications require me to be in tcsh. How can I get this working in tcsh? When I do the emacs () {"command emacs "$@" &}, it says ...
user avatar
0 votes
1 answer
48 views

Emacs Org Mode Mobile (org-mobile-pull) issue

I'm trying to sync .org files on Mac and iPhone through IPhone app MobileOrg. Things working file until running the org-mobile-pull command to try to pull the files that were sent from iPhone to my ...
user avatar
  • 1
0 votes
2 answers
22 views

Emacs on WLS Ubuntu in Moba XServer - no italics fonts

I have Ubuntu 20.04.3 LTS installed in a WSL1 container on my Windows 10 laptop. I also have MobaXterm Pro v21.5, configured with a WSL session so I can run command lines in a terminal tab. I also ...
user avatar
  • 131
1 vote
1 answer
55 views

Run X11 apps in Docker container using MacPorts' Xorg-Server on macOS host

I'd like to run the Emacs code editor in a Ubuntu Container I installed in Docker, and I'd like to run it in GUI mode. I installed the xorg-server port using MacPorts, but it defaults to a Unix-domain ...
user avatar
  • 143
0 votes
0 answers
7 views

Uploading an image from my computer to html on Emacs

I am making a website through Emacs on PuTTY on my personal server. I am trying to upload an image to the site with img src. Would I have to upload the image to my PuTTY server first? And if so how ...
user avatar
0 votes
1 answer
84 views

How to step through a shell script line-by-line and send each line to the terminal?

I have an .sh file with shell commands, for example: echo "What shall are we running?" if [ "$0" == "-bash" ]; then echo "I'm running a bash" else echo &...
user avatar
0 votes
0 answers
22 views

Recentf includes key bindings in .emacs.d/recentf?

I’m running the https://emacsformacosx.com/ build. Recently (maybe 3 weeks?), without any conscious(!) config change or package upgrade and on the same Emacs version (27.2 (9.0) in the Emacs > ...
user avatar
0 votes
0 answers
18 views

emacs not using ~/.emacs.d/init.el settings when opened in -nw mode

I have some basic settings in the initialization file, like: (setq global-auto-revert-non-file-buffers t) (setq normal-erase-is-backspace-mode t) (setq split-width-threshold 0 ) (setq split-height-...
user avatar
1 vote
2 answers
130 views

Treat terminal like an emacs buffer

I'm on Ubuntu and I use either GNOME Terminal or Terminator. I'd like to be less reliant on the mouse/touchpad. Say that I have the output of ls in the terminal and I want to copy out part of the ...
user avatar
  • 194
0 votes
0 answers
46 views

linking to outlook 2016 GUID from emacs

I am trying to use links to outlook items (emails, meetings ..etc) from emacs org-mode. I can create linkes from outlook using this answer, but I could not get it to work from emacs. This is elisp ...
user avatar
0 votes
0 answers
54 views

Cygwin ctrl-number not working (in cli emacs)

Cygwin ctrl-number is not working in cli emacs. I disabled the mintty options for keyboard shortcuts, so now ^- does work the same as ^u -1. Still, ctrl-number shortcuts do not work in emacs. ^4 ^x o ...
user avatar
  • 181
0 votes
1 answer
67 views

Got daemonp error while installing doom

I am on Macos 10.14 and am trying to install Doom with Emacs. I've downloaded emacs with brew install --cask emacs, and it is at version GNU Emacs 27.2. I run the installation lines per doom's ...
user avatar
0 votes
0 answers
18 views

Assign CTRL+h as Backspace in Visual Studio

I loaded the emacs keybindings, but it doesn't include C-h (CTRL+h) as the backspace key. Any pointers as to how I can assign this in Visual Studio 2019?
user avatar
1 vote
1 answer
177 views

Finding emacs config file Ubuntu

I am attempting to locate my config file. Using my emacs editor, I can find .emacs using user-init-file which outputs ~\.emacs. However, trying to locate this file/folder in the terminal only returns ...
user avatar
  • 261
0 votes
0 answers
34 views

cygwin / mintty backspace and delete key mapping woes

I heavily rely on Cygwin (that uses mintty) and Open SSH to work on remote systems on command lines and then using emacs in text mode as editor. I particularly love using the screen(1) program so all ...
user avatar
2 votes
1 answer
145 views

Is anyone else experiencing keys (I am not touching) being sent to WSL 2 gui apps and how should I report it to Microsoft?

I am trying the Windows insider preview 10.0.21.390.1000 (co_release) with Ubuntu 18.0.4 (and Ubuntu 20.0.4) under WSL 2 to use Emacs in GUI mode without needing VcXsrv. With either version I ...
user avatar
0 votes
1 answer
51 views

emacs term send literal C-z to bash (background running process)

I recently switch from cli emacs to gui emacs (25). I regularly use a M-x term buffer to run cli tools. Upon switching, I found that pressing C-z now minimizes the emacs window (and laughed at the ...
user avatar
  • 181
2 votes
1 answer
3k views

mv: cannot move, Permission denied in WSL

I'm getting mv: cannot move, Permission denied error, but before claiming this is a dupe, please see what I've tried first: First of all, it has nothing to do with file or directory mode: $ mv -f ....
user avatar
  • 7,259
2 votes
0 answers
174 views

Emacs load file from command line

When I was on Ubuntu, I would open files with Emacs on the command line like this: $ emacs -nw file.txt or $ emacs /etc/sysctl.conf When I use Kali and type the above, no file is opened and I am ...
user avatar
  • 21
1 vote
0 answers
62 views

how to use pre-defined variables or constants in (custom-theme-set-faces) in emacs

I'd like to use pre-defined variable or constant of string type in (custom-theme-set-faces), so it would go like (setq Blue128 "#000080") (custom-theme-set-faces 'thename '(default ((t ( ...
user avatar
  • 111
1 vote
0 answers
31 views

Running emacs (gtk) through X410 from WSL Docker - program exits when idle

I've started trying to use Docker for my daily development environment to make it easy (in principle) to work from any arbitrary machine without a lot of setup fuss. My environment is based on Emacs+...
user avatar
  • 11
1 vote
0 answers
42 views

How do I make Emacs honor (setq mouse-yank-at-point t) when using isearch?

When using Emacs in a terminal, if I start a search (C-s) and then middle-click paste something, it goes into the search no matter where I click. This is what I want to happen in the GUI. This answer ...
user avatar
  • 111
0 votes
1 answer
52 views

Adding Emacs-style trailing line comment in Visual Studio Code

I am trying to replicate a standard comment shortcut from Emacs in Visual Studio Code (MacOS). In Emacs, the shortcut M-; adds a trailing line comment to the current line. I use this shortcut quite a ...
user avatar
0 votes
1 answer
67 views

How do you quickly renumber a numbered list in emacs after you re-order its elements?

Suppose you start with this list 1- tofu 2- vinegar 3- salt 4- ground beef 5- white sugar And then you want white sugar to be number 3. You kill 5-White sugar, go right beneath 2-vinegar and yank it :...
user avatar
  • 403
0 votes
0 answers
115 views

Emacs client - Keep frame until all buffers are closed

I'm using Emacs with the server in daemon mode. When I go to the buffers menu, I can see all the buffers that the server has open. Is there a way to keep the Emacs client frame open until all the ...
user avatar
0 votes
1 answer
152 views

Setting up ESS (R)

I am a new emacs user. I am trying to set up my R-environment in spacemacs. I have added the ESS layer in my dotfile, but I cannot get the LSP to connect in order to get completion and etc when I am ...
user avatar
0 votes
1 answer
94 views

Does `yank` mean copying, pasting, or either in Emacs?

While yank means copying in Vim, I am a bit confused about Emacs. What does yank mean there exactly?
user avatar
  • 621
1 vote
1 answer
99 views

How to configure Alpine to use an already running Emacs as an alternate editor?

I have activated in Alpine email client the following setting in order to use Emacs as an editor when composing emails: [X] Enable Alternate Editor Implicitly Editor = emacsclientw.exe -ca runemacs....
user avatar
  • 353
0 votes
1 answer
211 views

Change the window-terminal to Emacs edit-mode

I plan to change the window-terminal to Emacs-Editing style with: Set-PSReadLineOption -EditMode Emacs but it failed to work when start new terminal instance or restart the machine. As a solution, I ...
user avatar
1 vote
1 answer
3k views

Getting Emacs to work with GUI in WSL

I'm new here and I don't really get this stuff, so I'll try to provide all the relevant details but if something important is missing please tell me. I have Windows Subsystem for Linux (WSL2) setup on ...
user avatar
  • 113
1 vote
1 answer
191 views

Emacs ediff does not show inline word based differences

I am using emacs with ediff to compare two files. and my ediff view does not show inline differences. e.g., if lines from both files only have one word difference, ediff cannot highlight the word but ...
user avatar
  • 585
0 votes
1 answer
22 views

Start Emacs from MobXterm

I was using Emacs for a while from Cygwin. I created a link shortcut on Desktop and started it from there. Now I want to try Emacs from MobaXterm. I installed Emacs package but can't figure out how to ...
user avatar
  • 571
0 votes
1 answer
27 views

Switching to TMB mode in AD Studio

I am trying to become familiar with TMB in AD Studio. I have been working through the user's guide AD Studio: Statistical modelling in ADMB and TMB Version 1.0 (2018-01-22) by Arni Magnusson. I can ...
user avatar
4 votes
1 answer
323 views

Some applications in full screen leave an invisible gap between top of window and the top border of the screen. (win 10, multiple monitors)

I notice this problem with emacs, notepad++, and WinRAR. When their window is maximized to full screen, there's actually an invisible gap between the top of the window to the top edge of the screen. ...
user avatar
  • 141
0 votes
2 answers
859 views

How do I exit vim, that is within emacs term mode with evil?

I am trying to make transition from vim to emacs (specifically doom-emacs). I was using term mode and habitually used vim in an attempt to edit another file forgetting that I was inside emacs. I ...
user avatar
0 votes
1 answer
163 views

Unable to run emacs

I have been running $ emacs &, however, I keep getting " Display localhost:0/0 unavailable, simulating -nw". Can anyone explain why this is happening?
user avatar
0 votes
1 answer
38 views

Starting emacs server from outside emacs

I am trying to start emacsserver from outside emacs (even having emacs not running at all to start with). I would like to start a search through my org files using emacs functions, but avoiding the ...
user avatar
0 votes
1 answer
323 views

access smb share via emacs tramp mode - repeatedly prompting for password

If I use smbclient from the command line on a unix host to access a windows server share (happens to be a windows server in an Active Directory domain), it works fine. I can access directories and ...
user avatar
  • 399
0 votes
1 answer
146 views

spotlight launches new emacs instead of moving focus to a running emacs instance

Suppose I search for chrome in spotlight search, and select the top suggestion - Google Chrome, this causes mac os to move focus to a running instance of Google Chrome, if available. Likewise, when I ...
user avatar
2 votes
0 answers
41 views

emacs meta key doesn't respond after setting option key as meta on OSX

I recently installed macport emacs and spacemacs with brew. I configured the spacemacs to ivy mode. The problem is after setting the option key as Meta on terminal preference, the output of meta key ...
user avatar
0 votes
2 answers
3k views

An efficient way to start a graphical application with multiple monitors with WSL2 and VcXsrv on Windows

I am using WSL2 on Windows, at the moment mainly just to start my customized emacs. My workflow to get emacs started is a little bit cumbersome. After each boot, I have to start Xsrv application with ...
user avatar
1 vote
1 answer
1k views

How to run command (cmd.exe) from inside emacs inside WSL?

I now have emacs running under VcXsrv started when I open WSL (Unbuntu) on Windows 10. And if I invoke "shell" it runs a bash shell fine. However, I have a few command files I like to run. In ...
user avatar
0 votes
0 answers
96 views

Textboxes in Linux-based systems

I know this is a very wide-ranging question, but I hope someone can point me in the right direction. For a long time now, I have been really frustrated with the fact that textboxes in my Linux ...
user avatar
  • 101
0 votes
1 answer
44 views

CTRL+= shortcut binding in MacOS terminal?

I've a binding for CTRL = shortcut in emacs. It works when I use emacs as an app. But in the terminal, CTRL = causes "invalid key sound" and also doesn't work in terminal emacs. What's blocking it?
user avatar
  • 295
1 vote
0 answers
450 views

emacs keybindings in VS Code's Jupyter Notebook

How can I make emacs keybindings work on VS Code while editing a Jupyter Notebook? I am using the "Emacs Friendly Keymap" extension. It works great while editing normal files (text), but are ignored ...
user avatar
  • 192

1
2 3 4 5
34