All Questions

0
votes
2answers
49 views

How to get current language at point?

How can i get current programming language at current cursor. For example, if my cursor is inside script tag, then it should return js or javascript and if it is inside style tag, then it should be ...
0
votes
0answers
12 views

Creating a link to a file based on the path from a source block

I have a source block as follows: #+begin_src bash :session mysession load_environment # loads environment, along with $path_to_dir variable #+end_src Following that, in my regular org text, I want ...
1
vote
2answers
41 views

Orgmode automatically increment an unordered list

I use org-mode for planning projects and tasks, etc. Say I am reading a book and I want to track my progress chapter by chapter. I want to create a list of repetitive elements with an incremented ...
0
votes
0answers
30 views

What are enclosures in elfeed?

The term is used many times here https://github.com/oystersauce8/elfeed/blob/master/elfeed-show.el Googled it: https://duckduckgo.com/?q=elisp%3A+what+are+enclosures+in+elisp&t=h_&ia=web not ...
1
vote
1answer
36 views

Why doesn't Emacs accept keyboard input in timers? [duplicate]

I've managed to write a timer that reliably causes keyboard input not to be accepted until I press Ctrl-G. The issue is, I don't know what causes the timer to lock up, what the stack frame is when it'...
1
vote
1answer
44 views

Search strings, do a list with first occurences and use elements of that list

I have a LaTeX source, call it main.tex. Suppose it contains one or more of the classical groups, like "GL", "SL", "SO", "U", "SU", "Sp", "USp" or the spin group "Spin". I want to write a script ...
0
votes
1answer
16 views

What is the equivalent of Ruby's “rake test” for project elfeed?

In a ruby/rails project, the "standard" way to run "the test suite" is rake # alias for rake test Some projects will mention (when there's a deviation)how to run tests in their README. How do you ...
0
votes
2answers
24 views

“buffer is not visiting file” when trying to tail “elfeed-log”

When I turn on auto revert tail mode on a elfeed-log buffer I get error "buffer is not visiting file" in the mini buffer. So now what?
0
votes
0answers
18 views

Some lisp errors not showing a backtrace

I have a few custom written methods in my init file. They run in to null issues - too often :) Anywhen, I noticed for some errors emacs pull up a backtrace/debugger prompt for me. But often the error ...
1
vote
2answers
56 views

Jump to word in another window

I went from this issue Highlighting text in open (displayed) buffers/windows — searching for text from one buffer in another. I would like to write the function for these commands to jump to word in ...
0
votes
1answer
30 views

How can I set the default shell in spacemacs (Evil mode) when executing commands in a buffer?

I've downloaded spacemacs (configured with Evil mode) on a Windows PC and would like to use bash or wsl as the default. Example: Open the evil-tutor and execute command :!ls Desired Behaviour: I ...
1
vote
1answer
15 views

Lines vanish when using string rectangle with line-wrap

I paste this text, copied from IBM's social responsibility, into an Emacs buffer where the frame is 80 characters, or is small enough to cause a line-wrap: 02 Education and skills We are ...
4
votes
2answers
59 views

How to pipe large files through fold before opening?

On a regular basis I need to open files that have really long lines, which unfortunately causes emacs to grind to a halt. My understanding is that this is a long-term issue with the renderer. I've ...
0
votes
0answers
34 views

Emacs default font change in Ubuntu 19.04

I upgrades Ubuntu to 19.04, and it appears that the default font in Emacs has changed. Is it just me, or is it an Ubuntu/Debian change? Or has there been a change upsteram? Also, what is the name of ...
0
votes
0answers
17 views

Export to ODT Zip error

I am trying to get an org file exported to ODT and when I try to export I get the error: Running zip -mX0 filename.odt mimetype OpenDocument export failed: Unable to create OpenDocument file. Zip ...
0
votes
0answers
18 views

How to setup Emacs for live editing of ConTeXt documents?

I haven't found anything on how to set this up, such that latex-preview-pane works as expected, and I also couldn't find how to get the preview-latex working. It's mentioned in online docs but there's ...
0
votes
0answers
28 views

Running aspell in emacs with aspell key bindings

I am using aspell on the (Linux) command line, and have also started using it with mu4e in emacs to spell-check my composed messages using ispell-message. That command runs aspell, but with ispell ...
0
votes
1answer
33 views

Unable to quit emacs with `Wrong type argument: hash-table-p, nil`

I have some customisations in ~/.emacs.el. Today I refactored a piece that used dolist, directory-files, and find-file. I am now unable to quit Emacs in the normal way and I get this from the mini-...
0
votes
0answers
35 views

Force opening file in new buffer

Is there a way in emacs to open a file (or a dired directory) in a new buffer, even if there's a buffer with the same file (or directory)? find-file and find-alternate-file always return the open ...
0
votes
1answer
13 views

Creating a macro to change dictionary and run ispell

I would like to create a simple key binding (e.g. C-c s e) to spell check the (mu4e) email message I am composing using English (and use other bindings for other languages). I thought I'd simply ...
0
votes
0answers
25 views

Emacs not active when switching from different workspace

this repulses me to my core. Every so often when I switch to my emacs from a different workspace (awesome wm) the cursor appears just as an outlined box and is not active until I switch back and forth ...
1
vote
1answer
56 views

Accessing next/previous parenthesis instead of just the outermost one? (as with `syntax-ppss`)

syntax-ppss gives the surrounding parenthesis. Is it possible to get the next/previous parenthesis using this API? (which has the advantage of caching the syntax tree and working with multiple ...
3
votes
1answer
53 views

Making a region without point

From my understanding, Emacs creates a region my setting a mark and then anything between 'mark' and 'point' is the current region. I'm wondering if there is a way to create a region with only marks, ...
0
votes
0answers
42 views

How can I make multiple calls to external binaries?

I want to write an interactive function to Call an external binary Write the output of the binary into a buffer Process the buffer to extracts args for next call Call another external binary using ...
0
votes
1answer
36 views

Disable minor modes like flycheck-mode and flymake-mode by default

I disable the following the modes in init.el ;;flycheck-mode ;;flymake-mode ...
0
votes
0answers
27 views

Emacs cannot find virtual drive defined by MS Windows command `subst`

I am using spacemacs (0.200.13@26.1), but this should be applicable to vanilla Emacs too. The version of Emacs I'm experiencing this issue on is "GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-...
0
votes
0answers
53 views

Regular expression to match a URL

I am trying to construct a regexp for URLs (for grabbing them out quickly out of a paragraph, region, etc.). I don't need it advanced, but I am having some troubles with it. Here is my attempt, which ...
3
votes
1answer
47 views

Is there a way to read the current displayed message?

Ignoring the *Messages* buffer which is used for logging messages, and which can be disabled, is there a way to get the current message displayed using Elisp? Asking because there are times when it's ...
0
votes
1answer
24 views

Spacemacs: shortcut to jump from opened orgmode file to Neotree pane

I am using Spacemacs. So I have a Neotree pan that I open with Spc-f-t and that works fine. Then I can navigate down the tree to open a file with l and that will move the cursor from the Neotree pane ...
1
vote
1answer
43 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 ...
0
votes
1answer
10 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 ...
2
votes
2answers
89 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
26 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 ...
0
votes
0answers
45 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 ...
0
votes
0answers
11 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....
2
votes
2answers
53 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 "~/...
0
votes
1answer
18 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 ...
3
votes
1answer
46 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 "...
0
votes
0answers
24 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, ...
1
vote
2answers
34 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
21 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. (By portable subtree, ...
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 ...
3
votes
1answer
30 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 ...
1
vote
1answer
35 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
28 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
30 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
0answers
20 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 ...
1
vote
2answers
73 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 ...
1
vote
2answers
78 views

How to make emacs automatically spell 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....
2
votes
1answer
50 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 ...

15 30 50 per page