All Questions

0
votes
0answers
2 views

Why does a certain file always gets opened on startup?

I'm using desktop-save-mode to automatically open the files that I had opened in the last session. This mode should also remember the files that I closed so that it no longer opens them in the next ...
1
vote
2answers
23 views

Select region between empty lines

If I use (thing-at-point 'paragraph) (or mark-paragraph, for that matter), the selection isn't necessarily aware only about the empty lines. Especially, with lists and code blocks in org-mode. So, I ...
0
votes
0answers
5 views

describe-key for sequence mappings such as those in evil-mode

So, in evil mode, something like d i b (delete inside brackets) is a common occurence. However, describe-key will immediately describe just the d part. Using (describe-key "d i b") produces: d i b is ...
0
votes
0answers
6 views

Org-Habit Consistency Graph: Increase Visibility/Width of “Today” column

When I display the org-habits consistency graph in org-mode's agenda view, one column/character is used per day. I am finding that it is difficult to visually pick out the current day. I'd like to ...
1
vote
1answer
70 views

Writing a `Company` backend: how to give control to the next backend?

I wrote a backend for COMPANY. ;;----------------COMPANY BACKEND----------------------------- (defvar oef-mode-completions '() "The content of this variable is generated automatically for COMPANY ...
7
votes
1answer
211 views

Coloring mu4e headers based on title content

I'd like to color the messages in my *mu4e-headers* view, depending on which mailing list they come from. I'm rather new to emacs face alterations, and I didn't see anything that looked relevant for ...
0
votes
2answers
44 views

Tracking time spent typing in a buffer

Say if I’ve a buffer, is there a package or hack to track time that’s spent typing/editing on this buffer (ignoring idle time)?
0
votes
1answer
89 views

Newlines swallowed by org-capture

I irregularly see that org-capture has led to the disappearance of a newline, leaving me with lines like these * meeting w/ ch. <2017-12-01 Fri 11:00>* reading group <2017-10-09 Mon 16:15 +...
1
vote
2answers
161 views

Spacemacs: change prefix key from `SPC-b` to `SPC-v`

I use buffer (SPC-b) prefix key very often, and would like to move its keymap to a more convenient key (e.g. SPC-v). Is there a way to achieve this without redefining the entire map? so I would like ...
1
vote
1answer
47 views

Browse url at point when clicking and pressing super

I am trying to make emacs open the url displayed under the current point when I left click and press the super key at the same time. I am trying with this code but it does not work (global-set-key (...
0
votes
1answer
77 views

How to open an IRC session using SASL?

I would like to exchange on Freenode using ERC, however I do not know how to authenticate with SASL as required. -xxxxxx.freenode.net- *** Lookup up your hostname... -xxxxxx.freenode.net- *** ...
0
votes
1answer
30 views

org-mac-iCal not working

I am trying to setup org-mac-iCal See https://orgmode.org/worg/org-contrib/org-mac-iCal.html. Nothing happens when Emacs loads. Even when I run the specific function org-mac-iCal, nothing happens ...
0
votes
1answer
37 views

Insert a node at a specific place in org-mode

I'd like to insert a node into a specific place. Each day, I log in, expand the following nodes: "Engineering worklog" > "2019" > "Q2" > "week 20" > "05/20/15". I'd love to have a single command to ...
0
votes
1answer
78 views

Display custom org-entities as UTF-8 characters

I've recently added some custom entries to my org-entities-user (below), but they do not display as UTF-8 characters, even with org-toggle-pretty-entities on. Is it because they are more than one UTF-...
0
votes
0answers
22 views

Why multiple-cursors NOT mark all text between all square brackets?

emacs 26.1 I want to downcase all text between all square brackets. So I try to use multiple-cursors for this: here text: CREATE TABLE [CIndicators] ( [ID] INTEGER NOT NULL PRIMARY KEY ...
1
vote
2answers
24 views

Multi-processing via TRAMP with asynchronous shell commands

I found the following code in TRAMP: (defun tramp-adb-handle-shell-command (command &optional output-buffer error-buffer) "Like `shell-command' for Tramp files." (let* ((asynchronous (...
0
votes
0answers
9 views

Add line to Org Agenda that is [tab]-aware for navigating a link

I have added a line to my Agenda to display how many first-level items my inbox.org has. I put stuff in there from mobile devices quickly, so I needed a reminder to process things once I get back home....
0
votes
1answer
389 views

ESS install fails on Ubuntu 18.04

I had previously installed and used Emacs 25.2.2 and ESS 17.11 on Ubuntu 18.04 (Bionic Beaver). While attempting to update to the latest version of ESS, the ESS install script appears to have failed (...
0
votes
1answer
329 views

How to get live preview in real time while editing latex source code using AUCTeX?

I'm using Emacs (26.1, build 1, i686-w64-mingw32) on the latest version of Windows 10. Im looking to turn my Emacs into a LaTeX IDE that has a 'live preview' functionality. Ideally I would like my ...
0
votes
1answer
25 views

Characters replaced with angled bracket sequence, possibly due to encoding

I have files in Markdown, saved in a Dropbox folder. One of them replaces characters with angled bracket sequences. For example a git diff no-index between the saved file and a copy-paste of the text ...
1
vote
1answer
43 views

Org function to hide content

Is there an org function or combination of such that will hide all content but keep the currently visible headings visible? That is, something like org-content but which does not show currently ...
35
votes
9answers
4k views

How can I start learning Emacs Lisp?

Background: I'm mostly a vi user and am converting to Emacs. Past the basics and now use it for writing code in C and some Python with plans to do an R conversion too. I wrote (Common) LISP for ...
2
votes
1answer
26 views

How to append an argument to an external command in init.el?

I 1must append a config file to 2package command, required as -p puppeteer-config.json. In my init.el, I tried changing the native command as shown below: From: (setq ob-mermaid-cli-path "~/...
1
vote
1answer
112 views

Can linum-relative disregard folding?

Is it possible to have linum-relative disregard folding? The default works poorly with evil <count>j/k-jumping and ex-commands such as -13t. in org mode. (To comments: I said 'screen lines' ...
0
votes
1answer
26 views

Testing Emacs Lisp Code Involving Org Mode

I'm trying to figure out how I can use ERT and libraries like el-mock to test simple functions that manipulate my org-document. Consider a function like this: (defun promote-next-heading () (org-...
0
votes
1answer
6 views

"error in process sentinel: not enough arguments for format string” with simple R code

Flymake started giving this warning today: Error in process sentinel not enough arguments for format string The mode line shows Flymake:Wait [0 0]. I narrowed down the code throwing the error to a ...
2
votes
1answer
31 views

Exporting help for multiple emacs lisp symbols into a single Texinfo file

I am looking for a way to produce HTML documentation for functions and variables defined in my .el files. One way I have seen suggested is by using texi2html tool. The challenge is to produce the ...
3
votes
1answer
23 views

pcase matches with rx but not with regex

(rx bos (1+ (in "0-2")) eos) evaluates to "\\`[0-2]+\\'", so I expected these two functions to be equivalent: (defun with-rx (s) (pcase s ((rx bos (1+ (in "0-2")) eos) "matched") (t "not ...
0
votes
0answers
10 views

How to create a single tags table if there are multiple folders and multiple files in those folders

I am trying to create a tags table for all the folders and files inside a directory. But I am facing issue that TAGS is not a valid table. Please suggest if there is any way by which I can apply a ...
1
vote
1answer
21 views

Spawn a bash outside emacs?

I am trying to spawn a shell outside emacs, not in a buffer. I have tried (start-process "firefox" nil "firefox"), wich does start a firefox process outside emacs, but when i tried (start-process "...
4
votes
2answers
12k views

how do i install “solarized-theme”?

first i do this in a terminal: $ git clone git://github.com/altercation/solarized.git, that creates a directory in my home called "solarized", after that i add this 2 lines to my init.el (add-to-list ...
0
votes
0answers
21 views

C++ Windows Compilation Error/Warning Regexp

I am trying to setup a compile for Emacs on Windows using the CL C++ compiler provided by Windows with Visual Studio 2017. https://imgur.com/a/M80uTWH as can be seen from the above image, however, ...
0
votes
0answers
9 views

Org links to regex under portable subtree

Is it possible to have links like this? [[id:a5e9935a-9b82-480d-9c27-74a71bfac27a::/regex/]] That is, links to a match under a portable subtree? This, at least, did not work.
2
votes
1answer
33 views

Jumping from a source block to the tangled file

Is there an inverse of org-babel-tangle-jump-to-org allowing one to jump from a source block to the corresponding place in the tangled file?
1
vote
1answer
21 views

Possible to supress the: “Blocking call to accept-process-output with quit inhibited!!” message?

When running a process from a timer, this message is printed a lot. Is there a way to suppress the message entirely? For reference see: https://emacs.stackexchange.com/a/50681/2418
0
votes
1answer
53 views

How to make flyspell automatically check all visible text?

When flyspell is enabled it doesn't show spelling errors on all visible text (like most text editors that support spell checking). When moving the cursor over text, misspelled words become underlined....
0
votes
1answer
25 views

view log file effectively

I searched logviewer and still not get right one! My idea is: Open a log file with log mode, then screen split with 3 window: 1 for orignal log file, the second one for filter keyword lines (regex ...
0
votes
1answer
40 views

How to save all modified buffers and kill emacs

I use the well known key-binding C-x C-c to quit emacs. However this command asks y/n confirmation to save modified buffers and if there are process buffers (eg. Shell) it also asks for yes/no ...
0
votes
1answer
46 views

Org-mode export to PDF not highlighting code blocks

I am trying to use org-mode export through LaTex to get a nice PDF of my documents, but I can't get it to show highlighted code blocks through Pygments. The following is a snapshot of my configuration....
2
votes
1answer
49 views

trying to make a self-modifying function [duplicate]

I'm trying to make a function that returns a list of perfect numbers: A perfect number is a positive integer that is equal to the sum of its proper positive divisors For instance, 28 is perfect ...
10
votes
2answers
357 views

Editing multiple source blocks in one buffer

I've got multiple source blocks which are all tangled to the same file. When I invoke C-c ' inside one block, only this specific block is shown in a new buffer. Is there a possibility to show all ...
5
votes
1answer
572 views

src python in org-mode: IndentationError: unexpected indent

mac 10.13.4 / emacs 25.3 (9.0) / org-version 9.1.12 / python 3.5.2 I am trying to understand why C-c C-c generate an IndentationError: unexpected indent when executing a simple code like the example ...
0
votes
0answers
14 views

Running emacsclient does not load my display settings

I'm trying out emacs daemon and emacsclient in Linux. There's one thing I haven't been able to figure out: whenever I run emacsclient, my display settings (e.g. font) don't load, as opposed to what ...
0
votes
1answer
32 views

create new file helm-find-file with ffap

I have helm-find-files bound to C-x C-f. When I use it with a filename at point, and the file exists, it uses ffap to offer me that file, which is nice. But when the file does not exist, it just ...
1
vote
1answer
29 views

Org-mode Auto-Fill-Mode

Whenever I open an org file, I have to activate auto-fill-mode and go through every signle line that I need to read and press RET to get a filled paragraph. Is there any way to globally set auto-fill-...
1
vote
1answer
44 views

Latex compilation message in the echo area dissapears too soon

The outcome (success/error) of a Latex compilation (TeX-command-run-all) is printed in the echo area. Once you press a key, however, the echo area is cleared and the message is gone. I usually look at ...
1
vote
1answer
244 views

How to improve flyspell performance loading files?

On loading large files (~2000+ lines for example), flyspell takes a few seconds to Run. Is there a way to have flyspell delay applying to the entire buffer on load? Only run on visible text for ...
0
votes
1answer
54 views

How to define a custom function that runs a command twice?

In dired mode, 'm trying to make a function that runs dired-next-line twice and then bind to SPC so that I navigate files faster in dired mode. I tried to add this in my dired.el file but it didn't ...
7
votes
3answers
3k views

Set default coding system = UTF-8

Windows 10 (64 bit), Emacs 25.1 I want when I save any file to save them (by default) with coding system = UTF-8. So In my init.el I has : (prefer-coding-system 'utf-8) (set-default-coding-systems '...
0
votes
2answers
118 views

Problem with character encoding in Emacs 25

I am running Emacs 25 on Ubuntu 18.04. When I type accents, they display properly, but when I close and then reopen the file they appear like a backslash and then an octal number. This only happens ...

15 30 50 per page