Category "emacs"

Emacs magit command that shows names of modified files in a branch

While on a branch, I'm looking to run effectively this command: git diff --name-only master... using magit. What is the appropriate keystroke to see the name

Using the :general with use-package sometimes doesn't work

I started converting my evil-define-key calls to use the :general extension to use-package, and sometimes they work, and sometimes not. Re-evaluating the (use-p

How can I treat certain patterns as web-site links, that can be followed with org-open-at-point?

At work I frequently deal with support issues that my company keeps track of in a web-based bug tracker. Each issue has an URL that looks like https://mycompany

How does folks currently handle giving Emacs permissions to the ~/Downloads directory on osx Monterey 12.3

Currently I get this error (file-error \"File cannot be opened\" \"Operation not permitted\" \"/Users/foo/Downloads\")") In other answers I've seen we give ru

Doom Emacs > Haskel > What is the keyboard shortcut to evaluate a code block?

In Doom Emacs, Haskell code snippets placed after -- >>> can be evaluated using the mouse by clicking on the "Evaluate..." link. Is there a keyboard sh

shell-command never returns in emacs lisp

I am trying to write a function to send the clipped image in windows host to my Ubuntu WSL2 (defun win2wsl-clipped-image() "use powershell to save the

Cannot locate Agda mode binary when running Emacs GUI on OSX

Emacs (from https://emacsformacosx.com/) and Agda (via homebrew) both install gracefully. However when launching Emacs after running agda-mode setup I receive t

Emacs ESS major mode font colour change after Error

When using the R console through the ESS major mode in emacs, I encounter the following problem: Changed font color after Error The font color of all text, exce

How to toggle a command in Emacs lisp?

I would like to have a shortcut that would toggle the showing of line numbers in Emacs. This is what I have so far: (defun my-toggle-display-line-numbers-mode-f

Emacs lisp, How to make a newline in IELM?

Even the basic things seem to be hidden behind weird shortcut-combinations. How can I (hopefully without too many c-m-x-c combinations) create a simple new line

facing an issue while executing ethernet example given in espressif IDF release/v4.2

problem: I have used espressif esp32s ethernet example trying to build basic and build is successfuly generated now while executing it is throwing error as giv

Emacs Dired not working - Searching for program: no such file or directory, ls

When I open emacs, and type C-x C-f RET, the minibuffer says Searching for program: no such file or directory, ls This also happens when I press return after h

When reading a file in emacs, how can I set the "shell" for Shell-script mode?

I have some files that are not shell scripts per se, but designed to be sourced by shell scripts. Therefore, the file name don't match any pattern in auto-mode-

tramp never stops asking for password

I've having serious trouble using tramp on Emacs. I am continuously being asked for my password when I ssh into a server via tramp. This is to the point where i

emacs ess-indent-or-complete sends newline to R process

Occasionally, for reasons I can not determine, ess-indent-or-complete sends an input to the R console. In other words, I will be typing something, hit tab to au

How can I install emacs correctly on OS X?

I tried doing: brew install emacs --HEAD --use-git-head --with-cocoa --with-gnutls --with-rsvg --with-imagemagick But when I do emacs --version emacs --vers

How to detect exceptions as errors in emacs *compilation* buffer?

I'm running (c++ / gtest / bazel) unit-tests within emacs (ver 26.3) with results displayed in the *compilation* buffer. I would like unexpected exceptions to b

Convert alist to/from regular list in Elisp?

Given the "everything's-a-list" homoiconic approach to code and data in Lisp, I'm having a hard time understanding how to manipulate alists in Emacs Lisp. In p

How can I preview markdown in Emacs in real time?

I'm using spacemacs and I'm looking for a plugin to preview markdown in real time. I have found a plugin markdown-preview-eww, but it requires a gem and I prefe

How to map "jj" to Esc in emacs Evil mode

Recently I tried Emacs and found Evil helpful to keep my vim custom. I'm used to typing "jj" to return normal mode from insert mode like many Vimers do but don'