0
votes
0answers
11 views

org export filter

I am writing an org-export-filter to be able to use the \legend command from ccaption package in a line starting with #+caption. This way, the following code: #+attr_latex: :options angle=45 #+...
1
vote
0answers
15 views

How to send buffer to a repl without showing it in prompt?

I'm using nodejs-repl, though the question applies to sending text to any repl. I'd like to send a buffer to the repl, which I do with C-c C-b, but I don't want the buffer text to show in the prompt. ...
0
votes
0answers
8 views

Control order of R markdown output

I am trying to create a pdf document from a .Rmd file. I want to write some text which is followed by a code chunk. When the pdf is produced, the code chunks appear before the text. For example, I ...
1
vote
1answer
19 views

Help needed to debug (very) slow markdown-mode

I come back to emacs after an eternity without using it. I used it before but now that I'm a grown up I'd like to understand what I do and how to do stuff. I use emacs mainly for markdown edit at the ...
0
votes
0answers
21 views

org-babel-execute-src-block: No org-babel-execute function for R!

In org-mode, attempting to execute the following block... #+BEGIN_SRC R 1+2 #+END_SRC ...gives the error message org-babel-execute-src-block: No org-babel-execute function for R!. I have followed ...
0
votes
1answer
39 views

What is the difference between `C-i` and `<C-i>`?

I've just set (define-key input-decode-map "\C-i" [\C-i]) (define-key input-decode-map "\C-m" [\C-m]) (define-key input-decode-map "\C-[" [\C-\[]) in my config, but I noticed that C-i is now ...
0
votes
0answers
26 views

how to convert camel case to snake case with vanilla emacs

When editing for example a ruby file, can't emacs toggle CamelCase to snake_case out of the box? Example ruby file def SecDecGov puts "abort" end
0
votes
0answers
11 views

“Ignoreheading” Beamer Environment doesn't work with :BEAMER_act: Overlay

What I would like to do is the following: I have a beamer frame where I added :BEAMER_act: [<+->]. This works well with all blocks that follow, but not when I set :BEAMER_env: ignoreheading. ...
0
votes
1answer
27 views

What is a default shell on emacs 26.1 on Windows 10

I've been using default shell in Emacs (not eshell) for some time, defined some useful macros etc. Installed cygwin and now my default shell is bash. All of my macros and functions stopped working. ...
0
votes
1answer
27 views

Emacs Regexp syntax clarification

I am a bit confused on some aspects of Emacs regexps. Specifically with the paragraph on this page ‘\W’ matches a character which is not within a word ‘\B’ matches characters which are not a ...
0
votes
0answers
26 views

org latex export error: Unknown LaTeX class report

I am trying to export this small example from org to Latex. However, it is working only for the article class. With report or book, it produces the following error: Unknown LaTeX class report or ...
-1
votes
1answer
27 views

Including tex file in an org file

I have a tex file containing lots of standard settings such as packages to be included and various other options. How do I tell Org mode to use only the settings from that TeX file? i.e. for all ...
0
votes
0answers
12 views

Get the syntax coloring of another mode for newly defined mode

I am defining a new mode in emacs, but I want to have the same syntax highlighting as Org mode. How can I do this?
0
votes
0answers
5 views

Apply evil-mode Macro to helm-ag Results

I love using helm-ag-edit within projectile to make bulk edits to many files in my project in one fell swoop. However, sometimes I want to apply keyboard macros (using evil-mode) to these files. The ...
0
votes
0answers
7 views

Apply vim macro to files in helm-ag result?

I am using spacemacs (using evil mode) and want to apply a vim macro (keyboard defined or otherwise) to the files resulting from a search in helm-ag. I'm thinking the easiest way would be to apply a ...
2
votes
1answer
30 views

How to use fixed point decimals in emacs lisp?

How to use large decimal numbers with fixed precision, like money amount, in emacs lisp? For example, I'm writing a function that takes amount of money as a parameter. When I pass large float like ...
0
votes
0answers
18 views

How to source PATH for Emacs `M-!` under Gnome?

I set my PATH in .profile and I want to see they from M-! But sourcing .profile from .bashrc works only for xterm, instead with .xsessionrc (I'm in debian) seams not work at all. Any suggestion?
0
votes
1answer
23 views

Forcing lexical-scope in the middle of dynamic-scope

Today I ran head first into lexical vs dynamic scope in Emacs Lisp. Gist of it is I have a macro defined in lexical scope that expands into a `defun'. Let's say something simple like this: ;; -*- ...
0
votes
0answers
10 views

pdf2dsc problems on a mac

I get the following error messages TeX Output exited as expected with code 1 at Mon Nov 19 21:21:13 Running `Preview-PDF2DSC' with ``pdf2dsc Case-based_prediction.pdf Case-based_prediction.prv/...
1
vote
0answers
16 views

How to change which window a click in *Occur* buffer affects?

My use case: I am looking at one place in the code in one window (call it window A), have a second window with the SAME code open (window B) in the same frame, together with an Occur buffer, that I ...
0
votes
1answer
30 views

Hook when line number changes

Is there a hook which runs when the cursor position changes its current line numbers? For a concrete toy problem, can i highlight the current line as yellow when the line number of the current cursor ...
1
vote
0answers
25 views

Make text Invisible with font-lock-keywords

I'm interested in changing my org-mode buffers to have a better looking logbook. My ideal state to end up in is that text that looks like this: - State "WAITING" from "WAITING" [2018-11-16 Fri ...
0
votes
0answers
51 views

Downgrading Emacs in Fedora via 'dnf'

My problems with emacs 26-1 are discussed at this link : Emacs 26-1 Problems : find-file and neotree The following link discusses using dnf to installing a previous version of a package: https://unix....
0
votes
1answer
28 views

How to disable C-<number>

I don't know the name of the command C-<number> <entry> to repeat the <entry>, <number> times. For me it is more annoying than useful, several times I have accidentally ...
1
vote
0answers
48 views

Emacs 26-1 Problems : find-file and neotree

The Problems: I just did a full re-install to Fedora 29, which included the dnf install emacs command. This installed emacs 26-1; formerly I was using emacs 25.2. Formerly, my emacs initialization ...
0
votes
0answers
11 views

Problem finding files in deft

Note: I am using Windows 10. I have installed deft on my Emacs. I have two text files in my directory ~/docs/.deft but when I open Emacs and enter M-x deft it says, "No files found." However, if ...
0
votes
1answer
16 views

Maxima won't start, but works in org-mode

This is very odd, but I've got latest greatest everything -- 26.1; org-mode 9.1.14 9.1.14-9-g131531-elpaplus; maxima-5.42.1 (installed from source) -- and have this in my .emacs: (add-to-list 'load-...
0
votes
1answer
14 views

How to apply org-ctrl-c-ctrl-c-hook from command line?

This problem is so convoluted that maybe I should call it a puzzle... On the Unix shell command line, I can convert TSV (tab-separated-values) input to org-mode table format with this perl one-liner: ...
0
votes
1answer
14 views

Hooking on to abbreviation expansion

I don't know exactly how abbrev-mode works, but I suppose certain keys --spaces and stops-- cause an examination of the word before point, and a replacement of it in some cases. My question is how ...
0
votes
0answers
10 views

Latex Export multiple subtrees into separate files

I have a subtree that I want to export as a latex document. That subtree needs a fairly long preamble specific to it, so I want to compile the preamble into a separate file, which I can then call with ...
0
votes
1answer
44 views

Whitespace and newlines in regexps?

For a number of reasons (one of them my lameness) I get extremely confused when it comes to whitespace and newlines in regexps. Say for example that I want to search for an equal sign (=) followed by ...
0
votes
3answers
34 views

Make parts of a working buffer read-only

Is it possible to make only parts of a buffer read-only? Say I have set two marks or line-numbers in the buffer and I would like to make everything between those two marks or line-numbers as read-...
0
votes
2answers
34 views

Quick Startup in Org-Mode?

There are two ways I start a new org-mode file: 1) I open Emacs and then by Ctr-x Ctr-f I type in the address of the location of where I want my file to be in. 2) I right click the place I want my ...
0
votes
1answer
24 views

Create a read-only buffer but which can be written to by Emacs-Lisp code

Is there a standard function to create an Emacs buffer in which we cannot type anything in (i.e. cannot be edited) but any running Elisp code can make changes to the buffer The following code does ...
0
votes
0answers
16 views

Case sensitive regular expression search [duplicate]

I want to use the re-search-forward function in my Elisp code for searching text. However, it seems to ignore letter case! For instance, when I put the following in my *scratch* buffer: (re-search-...
0
votes
3answers
56 views

How to remove the remaining commands of removed built-in packages?

I've read here that you can delete the built-in packages from emacs at /usr/share/emacs/25.2/lisp in order to get rid of their commands which may clutter the minibuffer every time you want to execute ...
0
votes
0answers
18 views

Mu4e, emacs-w3e and evil

I'm slowly getting comfortable with emacs+mu4e+mbsync for my emails, and using emacs-w3e for HTML mails with images seems to work. My problem now is that even though I load evil-collection, and the ...
0
votes
1answer
29 views

How to get auto-completion of Elisp function names?

I want to be able to get a drop-down list of partial matches to Elisp function names (installed or those already defined in the buffer) as shown in the screen-shot below from the YouTube video: https:...
0
votes
1answer
10 views

File-missing “No such file or directory” “c:/emacs-26.1-x86_64/bin/%HOMEDRIVE%%HOMEPATH%/”

I'm launching Emacs using runemacs on Windows 7, from the emacs directory (C:\emacs-26.1-x86_64\bin), using runemacs --debug-init. I get the following error text: Debugger entered--Lisp error: (file-...
0
votes
0answers
11 views

EIN url-retrieve unsupport

I've been using EIN quite often to run "jupyter notebooks" inside Emacs. However, it stopped working and I have no clue why. When I do ein:notebooklist-login it gives me the warnings below: ...
1
vote
1answer
29 views

Where find good json formater and validation?

Emacs 26.1. Windows 10 It's has function json-pretty-print . But it not enough for me. Has any another better json formater and validator? I mean the next. Suppose I has error on json on line 26. I ...
0
votes
0answers
19 views

Interrupt the exit process?

I have this bound to save-buffer-kill-terminal: (defun magit-projects-areyousure () (interactive) (let ((default-directory org-directory)) (and (get-buffer "projects.org") (magit-anything-...
0
votes
1answer
9 views

Adjust end index in selected region

Following the advice given here, I wrote the following code to enclose the text selection in phpbb italics tags : (defun wrap-in-phpbb-italics-tag (b e) "does what its name says." (interactive "...
1
vote
2answers
23 views

Turn on noweb references for all org buffers

I want to use the noweb style references in Emacs org for literate programming. Consider the following working code. #+NAME:Header #+BEGIN_SRC c++ #include <iostream> #+END_SRC Blah blah #+...
0
votes
1answer
27 views

How to alias a buffer name?

Is it possible to provide an alias (e.g. m or mes) for a name like *Messages*? Ideally, I'd like to be able to write some kind of hook that gets called when a buffer doesn't exist and resolves to ...
0
votes
0answers
15 views

How to use separate versions of a language/runtime with two separate eshells?

I have two eshell buffers: esh1 and esh2. In esh1, I want to use a particular Node version, say 6.0.0. In esh2, I want to use a different Node version, say 8.0.0. Using a node version manager called ...
3
votes
1answer
37 views

Using File Local Variables in org-mode

Is there a way to use file local variables set in an org-mode file in the following contexts: Simply expanding the variable when text is exported (eg: to LaTeX) Passing the value to :var in a babel ...
1
vote
1answer
34 views

M-= shortcut suddenly stops working in Emacs in KDE

I'm trying to run M-= on a region of text, but nothing happens. I think the shortcut is registered (I don't get a message like "M-= is undefined") but the execution stops for some reason and there is ...
2
votes
1answer
27 views

Is there a way to export latex template to scimax template?

Scimax has already some templates for various journals. However, is there a way to convert latex templates of some specific journals (like nuclear physics A, European physical journal etc.) to org-...
3
votes
1answer
29 views

How to give attribution to Creative Commons pictures in org-mode

I am making a presentation in org-mode and have some creative commons pictures that I need to give attribution for. I have tried using a footnote with the reference but as the picture is in the right ...

15 30 50 per page