All Questions

0
votes
0answers
2 views

emacs fails to run git

Emacs fails to run git while booting up to install via emacs straight. error "Failed to run \"git\"; Is there a way to upgrade git or run the command explicitly.
1
vote
1answer
24 views

How to bind keys to a function which can be defined per-mode?

Currently I have variables defined with setq-local, this is useful for modes, so I can define variables only for a particular mode. How can this be done for functions? I'd like to have a function, ...
1
vote
1answer
14 views

Can flymake or flycheck mark in dired (or in buffer lists) files with errors?

It would be nice if, in addition to flymake/flycheck marking errors in particular files, they could somehow mark files with errors in dired (or maybe just in the open-buffers list). The goal would be ...
1
vote
0answers
9 views

How to indent inline elements only once?

In this case the basic offset is 4 and tabs mode is enabled. For example I am getting: if (! (true // Problem when the value starts inline. && false)) {} // I get two tabs, one per '(...
1
vote
0answers
10 views

Abbrevs with interstitial capital letters

Whenever I type YouTrack, abbrev erroneously corrects it to Youtrack. I noticed that in my abbrevs file it has ("youtrack" "youtrack" nil :count 7). Why is that there, and how can I get abbrev to ...
5
votes
2answers
153 views

How to expand abbrevs without hitting another extra key?

How can I expand oe to ö immediately after hitting the e without hitting any extra key like space for expansion? Why? For better ergonomics I've remapped some keys like ö, ü and thus must write them ...
1
vote
1answer
22 views

How prevent `display-buffer` from opening a specific buffer in a new window if and only if it is shown in another frame

I want the *compilation* buffer to not pop up in my main frame when I have it in another frame already open. However if the buffer is not shown anywhere, I do want it to pop up in a new window of the ...
3
votes
3answers
76 views

User command to reload file-local variables

How can I easily reload file-local variables, after I have changes their values in the file buffer? I know a work around Save and close the file and re-open. But this is pretty cumbersome.
0
votes
0answers
11 views

Error initiating treemac

initiating treemac is giving this error. I just don't understand all the errors that emacs throws up. I just have (require 'treemacs) in init file. version-to-list: Invalid version syntax: ‘'"'...
1
vote
0answers
13 views

How to navigate SPC commands with Vim cursor?

I am very used to Vim keys BUT I love to use Emacs. That's why Spacemacs in Evil mode is perfect for me. There is one thing I still cannot figure out how to do. I don't know how to use h,j,k,l for ...
1
vote
0answers
17 views

Evil substitue with a counter

I was wondering if it is possible to run a substitue command in evil with a counter? For example, with query-replace-regexp you can use replace-count: (format "word-%d" (1+ replace-count)).
0
votes
0answers
10 views

Display the ipython result in one line

Uponing working on Ipython In [27]: movies.head(n=2) Out[27]: star_rating title content_rating genre duration actors_list 0 9....
2
votes
1answer
50 views

Disabling automatic add after resolving git conflict

After updating emacs (to 25.2.2 as shipping in ubuntu 18.04) I notice a change that completely breaks my conflict resolution flow in git. Once I resolve a conflict using emacs and save the file, emacs ...
1
vote
0answers
32 views

opening org link in dired

[[D:/dev::line][code]] stores the link to my code directory. How can i used dired to open it in emacs. Currently with this code explorer opens the directory. I'm using Windows 7.
0
votes
0answers
6 views

When I click on a file on the spacemacs start screen, it automatically enters a newline

This only happens when I open a file with a mouseclick on the spacemacs start-screen. Very odd, it does not even work when I press enter instead or when I open the file in another way. The reason ...
0
votes
0answers
13 views

Configuring web-mode for Vue.js (.vue) files

It seems that web-mode is ready for Vue.js (extension .vue) files by simply throwing in (add-to-list 'auto-mode-alist '("\\.vue\\'" . web-mode)) in one's .emacs file. But web-mode does not like the ...
0
votes
0answers
26 views

Autocomplete signatures from new C Headers

I use Emacs(work environment is Linux. and at home i use Windows 7) for most of my Python coding and documentation. I'm mostly working for visual effects pipeline products. Off late I'm learning bits ...
2
votes
2answers
47 views

How can I set command-line parameters through `.emacs` file?

Is it possible to set Emacs start-up command-line flags such as -nw and -q in an init file? If it is, how can I do that?
0
votes
1answer
16 views

window-configuration-change-hook false positives from desktop-mode

I'm trying to use window-configuration-change-hook in a package to perform some action when a buffer becomes visible for the first time. It works, however when starting Emacs, desktop-mode calls ...
1
vote
1answer
23 views

How to paste a multiline regex from re-builder into `replace-regexp`

I built with M-x re-builder a regex to match empty quoted lines in emails. In read syntax it is: "^>\\s-*\n>" How can I copy this regex in re-builder, so that I can paste it in the first ...
0
votes
1answer
32 views

The difference between (setq shell t) and (shell . t)

Upon configuring babel, encounter such syntax (require 'ob-ipython) (org-babel-do-load-languages 'org-babel-load-languages '((ipython . t) (python . t) (shell . t) ;; other languages.. )...
1
vote
1answer
19 views

Expanding current column does not work as expected with a width cookie

From the manual: C-c TAB (org-table-toggle-column-width) Shrink or expand current column. If a width cookie specifies a width W for the column, shrinking it displays the first W visible ...
1
vote
0answers
25 views

Is there an equivalent to a spreadsheet's “freeze pane”?

I have an org file containing something like this: |id | foo | bar | ... |-----+-------------+-----------| ... |1 | foo1 | bar1 | ... |2 | foo2 | bar2 | ....
0
votes
0answers
18 views

Data structure for ELPA archive use of dotted pair [duplicate]

As a belated follow-up to this, can someone enlighten me why the data structure used in the ELPA archive-contents files is a dotted pair of a name (symbol) and a vector that contains a great many ...
1
vote
0answers
16 views

Derived mode from CC Mode: how do I write one?

Where is the definitive, up-to-date guide on how to write a derived mode from CC Mode. I have a mode that's malfunctioning and thought I might just rewrite it, but information I find is spotty and ...
0
votes
0answers
8 views

always prompt for default directory when opening interactive subshell

When I invoke C-u M-x shell while visiting a local file or scratch buffer, emacs does not prompt me to enter the default directory for the shell. But if I'm visiting a remote file or directory ...
0
votes
0answers
21 views

View and save email as PDF

I want to save an email receipt as a PDF. I type a and v (for Action and View as PDF) and get Wrong type argument: stringp, nil. How can I save a message as a PDF file?
2
votes
1answer
25 views

Retrieving parents with properties

Suppose I'm at point Grandchild below: * Parent :@Project: ** Child **** Grandchild How can I construct an elisp function that goes up the ...
2
votes
1answer
36 views

Can turning on lexical binding in a legacy init file cause problems?

AFAIK turning on lexical binding only affects the current buffer. But if I add lexical scoped code to my crusty old init file which have load and require statements in it (not everything is autoloaded)...
1
vote
1answer
19 views

Does `<meta charset=utf-8 />` obviate `-*- coding: utf-8 -*-` in an HTML file?

Is writing <meta charset=utf-8 /> in an HTML file (being edited by Emacs) sufficient, or do I also need to specify -*- coding: utf-8 -*- on the first line? In other words, do I have to write &...
0
votes
1answer
36 views

How to find out if a file is visible for my shell script?

I want to implement a script that I can call from my file explorer to be able to open a new frame with the chosen file (emacsclient -nc $1), but only if the file does not already exist then I simply ...
0
votes
0answers
15 views

Use diary sexp as repeatable TODO's

So what I am looking for is to Schedule repeatable events with TODO keywords where as soon as in org agenda I mark a TODO item as DONE, just that one event be marked as DONE rather than all of the ...
0
votes
1answer
14 views

Resolving the conflict when the file on disk has been changed

When a file changes on disk while you're editing in Emacs, how to merge both sets of changes into the file?
0
votes
1answer
24 views

after-change-functions global value gets set to nil sometimes

I'm facing a strange issue and I don't know how to debug it. In the middle of work after-change-functions just gets set to nil. I use doom-modeline and it installs hooks to after-change-functions to ...
0
votes
1answer
27 views

Is it possible to change to Emacs input mode with Doom Emacs?

It's default input mode is vim. Didn't find the toggle option like Spacemacs with M-m t E. https://github.com/hlissner/doom-emacs
0
votes
0answers
20 views

org-mind-map unable to find flatten and dot command

I get the following error when running org-mind-map. Paths the each are as follows: $ which unflatten /usr/local/bin/unflatten $ which dot /usr/local/bin/dot How to tell org-mind-map to access ...
6
votes
0answers
40 views

Create a “rabbit hole” task stack that can be pushed/popped?

I frequently fall into a sort of working anti-pattern involving “rabbit holes.”¹ Here’s the form it takes (with a concrete e.g. in parentheses): Start working on something (the “real task”) ...
0
votes
1answer
33 views

Ditaa source code evaluated with no result

The code below evaluated successfully but ~/Downloads/foo.png is empty. A look at the downloads folder shows that no file has been generated. What went wrong? #+begin_src ditaa :file ~/Downloads/foo....
0
votes
0answers
13 views

Evil horisontal scroll key efficiency

Is it possible to make zl work as zlllll... (also zh) as many times as you need? What I do now is zl C-x z zzzz.... The hydra package seems to do that but I will have to re-map all keys starting with ...
1
vote
1answer
17 views

Cargo-process does not accept user input

Using the Emacs mode for Cargo, I'm able to build and run Rust code inside Emacs. However, the terminal that opens when executing cargo-process-run does not accept user input. For example, when ...
1
vote
0answers
23 views

How to always show buffer in the new created frame?

My workflow is: I initialize emacs with a shortcut (in my ~/.i3/config I have a line like this bindcode $mod+49 exec emacsclient -c -n -q -a=''. I use i3wm.org) By default it goes to temp.org, in ....
1
vote
1answer
27 views

Org-mode File Types

I haven't been able to find in the documentation the role of a few file types created by org-mode to support the main org file. file.org is the main file file.org_archive is clearly where archived ...
2
votes
2answers
69 views

How convert text to hex value?

I has some sybmol, e.g. O and I want to convert it to hex value. The result must be 4f How I can do this in Emacs 26.1 ?
2
votes
3answers
37 views

How to get the argument from previous use of `command-execute`?

I want to automatically rename the buffer name of compilation mode. The default name is *compilation*. Let's call my new compilation command my-compile. So supposing we run my command like this: M-x ...
1
vote
1answer
10 views

What is the equivalent of the org-babel CALL in emacs-lisp?

Let's take this simple Org code, with two Python code blocs (one which returns a list, and the other one which prints the type and the content of the parameter): #+NAME: int #+BEGIN_SRC python :...
1
vote
1answer
37 views

In org-mode, how do I continue a list in a new line?

For example: * Tests ** Test1 - When I put a new-line right here -> the list will not be continued (unlike in word or similar applications). For clarification, what I expect is: * Tests ** ...
0
votes
1answer
25 views

org-mode table element selection with blanks

TL;DR: How do you send a list of elements from a table, including blank cells, to an elisp function? I have the table below with points on exam questions in columns 2-4. The second row contains the ...
0
votes
1answer
13 views

Copy URL to the clipboard

I can visit URLs in a message with g, bound to mu4e-view-go-to-url, which uses the default browser. How can I copy it to the clipboard to view it on another browser?
0
votes
0answers
22 views

`scad-mode` (derived from CC Mode) hangs Emacs. How to debug/fix?

I have found that scad-mode.el, a derived mode from CC Mode, which can be found here: https://github.com/openscad/openscad/blob/master/contrib/scad-mode.el hangs emacs if I type #( into the window,...
2
votes
1answer
47 views

How can I debug a hang when debug-on-quit doesn't work?

I have a problem with haskell-mode where Emacs will hang every time I open up a Haskell file. Mashing Ctrl-g a few times will get the file opened. So I would imagine setting debug-on-quit would allow ...

15 30 50 per page