All Questions

0
votes
1answer
14 views

Check if a character is in a string

It is easy to present list of allowed characters as string, like " \n\t". (char-before) return integer. How can I check that a character is in a string? There is What is the easiest way to check if ...
0
votes
0answers
4 views

Tangling latex code

I am migrating to org-mode to keep track of my research. My org-file contains scheduling information, questions that I am thinking of. In the past, I spun off completed material into papers (written ...
0
votes
1answer
7 views

How can I get superscripts at the beginning of a line in org-mode?

I'm writing a document (in org-mode) that quotes another document, including its footnotes. As such, I'd like to have a line like: #+BEGIN_QUOTE ^123 The contents of footnote 123 go here. #+...
0
votes
1answer
14 views

Is there regex match at point?

I want to match a certain string (not even a regex!) at point. re-search-forward skips characters after the point. With char-after it is possible to build a framework for matching a string at point. ...
0
votes
0answers
10 views

remove duplicate word one by one [duplicate]

I'm looking for ways to detect duplicate, not case-sensitive words in a text/latex document. Google turns up this elisp-macro https://www.gnu.org/software/emacs/manual/html_node/eintr/the_002dthe....
0
votes
1answer
26 views

Line numbering: stick with linum or nlinum? [on hold]

I see that both linum and nlinum are actively maintained: one is built-in, another recently had a release. With older Emacs version, linum used to be slow with a lot of folding in a buffer (e.g. in ...
0
votes
0answers
9 views

Inline Code Annotations?

I'd like to be able to add inline annotations to my code files that appear to me but do not actually change the file. I looked around for solutions but couldn't find anything besides annotate.el but ...
0
votes
0answers
8 views

Is it possible to export R code within Latex code in an org-mode document?

I am trying to evaluate R code within LaTeX code in an org-mode document. The objective is to export the org-mode document to a .tex document and, ultimately, to a nice pdf document. My problem is ...
0
votes
1answer
31 views

How do I set up all the fonts in my GUI Emacs

I have the following in my init.el: (add-to-list 'default-frame-alist '(font . "Monaco-10")) The above does the job, but Emacs uses some other fonts when displaying headlines in org ...
0
votes
0answers
7 views

How to pass noweb variables to latex blocks

I need to tangle a LaTeχ file from code blocks in an org file. How do I pass variables to the SRC block? In theory I should use :var var1=value, but is there any way to reference var1 in the LaTeχ ...
0
votes
0answers
8 views

Connecting to VMS VAX using FTP

I have to connect to a VMS machine (legacy systems from 1960's) TELNET PORT23 at work. They are used in process control plants and are being upgraded to modern systems. We have to access these systems ...
0
votes
0answers
8 views

Transparent tangling and detangling?

I'm working on a latex document which I tangle from org mode. With the header argument :comments link, I get a tex file that can be detangled back into the original org file (org-babel-detangle). ...
0
votes
0answers
14 views

Ipython code only executes from org-edit-special, not from org source code block

I am trying to setup emacs on a windows 7 machine, and having trouble executing python/ipython code blocks. I am able to send these code blocks to org-edit-special (C-c '), start a python process (C-c ...
0
votes
0answers
13 views

How find org entries that are missing a certain property?

I have this long sub-tree, I want to find the entries that I haven't set a certain property on yet. * Big list ** foo :PROPERTIES: :QUUX: 1 :END: ** bar :PROPERTIES: :END: ** baz ...
0
votes
0answers
20 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 ...
0
votes
0answers
16 views

Magit Tramp not showing dif window

When using magit on a local file, I stage my changes and I then press c and c again to commit. I get a new window showing the diff and a window for the commit message. I write my commit message press ...
0
votes
0answers
10 views

org-src-fontify-natively breaks #'org-in-src-block-p

#+BEGIN_SRC latex we are now inside a source-code block; but, with org-src-fontify-natively set to nil, calling #'org-in-src-block-p here | doesn't evaluate to t! #+END_SRC Is this a bug? I wasn't ...
1
vote
2answers
29 views

Shortcut to put the selected region in an ordinary LaTeX environment (not with begin-end style) using auctex

In auctex if one has a selected region and then apply the command c-c c-e (LaTeX-environment) then by selecting an environment, the selected region will be folded between that environment. Is there a ...
0
votes
0answers
22 views

Evil-mode mixed tabs & spaces indentation

I'm having extreme issues at the moment with evil mode where I am working on Jade/Pug and Stylus files for Node.JS where it is white space sensitive. I installed pug-mode but when you indent via >> ...
0
votes
1answer
19 views

how to do command substitution in eshell generally (NOT just for loop)

How to do command substitution à la Bash in Eshell, and not just for loops? (Unfortunately, while this question asks my question, its answer only provides Eshell for-loop syntax. So please don't dupe ...
0
votes
1answer
22 views

Replacement for the sit-for function

Using currently the sit-for function, every time i hit any key and cause user input the sit-for will stop. Is there any possibility to have something like sit-for, while being able to move the cursor ...
0
votes
1answer
44 views

Emacs 26.2 can't load init file from Emacs 25 [on hold]

The title already says the question, i had Emacs 25 and compiled Emacs 26.2. Although my ./emacs directory and everything in it exists Emacs 26.2. starts complaining about packages which do not exist, ...
0
votes
0answers
24 views

Adding a method to ‘make-instance’ fails every time I try

So, I’ve learned enough about generic functions, CLOS, and EIEIO to believe that this should work: (defclass foo () nil) (cl-defmethod make-instance ((x foo) &rest args) (with-temp-message "Is ...
1
vote
0answers
19 views

Why does setting the 'face property trigger fontification?

I'm trying to write a major mode for a programming language with JSX based syntax. Here's a minimal implementation. (defun example-forward-parse-jsx (start-pos limit) "Move point past the JSX ...
6
votes
3answers
59 views

Idiomatic way to count org-mode subtrees?

Is there an idiomatic way to count org-mode subtrees? I searched here on emacs.sx and other search engines, but I could not find an answer. I know one could easily count subtrees with a regex, but I ...
1
vote
1answer
17 views

How to convert a package to a layer in spacemacs

I am new to the world of Emacs, and like most ex-vimmers, I am starting with Spacemacs. I have been trying to find time to do some leetcode and would like to use the package leetcode-emacs. I have ...
1
vote
0answers
10 views

Sum effort estimates from today's scheduled tasks in org-mode

I want the agenda view to calculate the total amount of effort I have in tasks scheduled for today. For example, take these two tasks: * TODO Task 1 SCHEDULED: <2019-04-17 Wed> :PROPERTIES: :...
2
votes
0answers
31 views

Access Serial Port on Remote System

Is there a nifty emacs command to access the serial port on a remote system?;) I've seen socat, which creates a virtual serial port on the local system, but if emacs can do it directly, without that, ...
3
votes
1answer
53 views

Why did the proced of Emacs not show the process on my win10 system?

My Emacs version is 26.1. The system is Microsoft Windows 10. When I run M-x proced, the buffer does not list the proced used on the current system. What is this situation?
1
vote
0answers
31 views

Installing PDF-Tools Windows(non-geek tutorial)

I want to use pdf-tools to anotate pdf files using org-mode or viewing pdf outputs of my tex files which I hope it wil support syntex. I am following the official help to build for windows. I want to ...
5
votes
1answer
112 views

Shortening trees list with (setcdr (nthcdr 2 trees) nil)

I am starting to learn elisp and working through this tutorial https://www.gnu.org/software/emacs/manual/html_node/eintr/kill_002dnew-function.html and I do not understand this basic example: (setq ...
1
vote
1answer
20 views

Show current ispell dictionary in modeline

FlyCheck had dynamic modeline that shows real-time errors information: FlyC:0/21 How to have the similar ability for flyspell, to show the current dictionary used in the current buffer, the info ...
0
votes
0answers
25 views

SICP with Racket in org-mode

I'm following the suggestion here to set up racket as the default geiser/scheme. In Dr Racket I can set the first lines of code: #lang sicp (#%require sicp-pict) In order to match code presented in ...
1
vote
1answer
36 views

Naming the result of a source block

The following question has been asked (in slightly different form) in a comment of another answer: Is it possible to name the results of a source block with #+NAME: foobar (or equivalently but old-...
2
votes
1answer
26 views

No comment syntax defined

After calling org-babel-tangle on a certain file containing latex blocks, I see the prompt No comment syntax defined. Use: What is this about? This doesn't happen with another similar file I have....
0
votes
0answers
17 views

Org html export keeps presenting deleted links [on hold]

reated a file "PTF.org". Within that file I have a link to a .jpg. I changed the file structure, and therefore changed the link accordingly and it works in emacs org mode as it should. However when I ...
4
votes
1answer
19 views

Indentation of description lists

org-mode automatically indents description lists, but it uses two different schemes. For short labels, the second line of the description is aligned with the first character of the description. For ...
0
votes
1answer
10 views

How to run sql-postgres without password?

My PostgreSQL authenticates using Unix Domain Sockets (Trust Authentication). When I run psql I do not need a password to connect to the database. But when I run sql-postgres, I am always asked for a ...
3
votes
1answer
18 views

Clocking into separate file

Is it possible to set up an agenda file in org-mode, so that the clocking information is saved at a different location? At work we have a team-global and version-controlled file with a section ...
2
votes
1answer
121 views

Changing the prefix of many chords

It just occurred to me that the org-babel prefix C-c C-v must be what it is because of the proximity of c and v in qwerty, and that it would be better for me to use C-c C-f. Is there a simple way to ...
0
votes
3answers
47 views

The elisp function to run the shell command in specific file path

Personally I need run many shell command in emacs, I find it is not convenient to run a shell engine (eshell) or using it separately (bash), so is there a elisp function (local provide by emacs or any ...
2
votes
0answers
27 views

Marking sexp diary entries as done in org agenda

I often use sexp diary entries for events in ORG-AGENDA. Is there a way of marking them as "DONE" in agenda-view? E.g. %%(diary-float t 2 3) Send John info for Bulletin E.g. %%(diary-block 12 15 ...
0
votes
0answers
15 views

Spacemacs - python mode

I have some problems with my spacemacs configuration. For instance, it's supposed to be globally set up with emacs editing mode and the line numbers as well dotspacemacs-editing-style 'emacs ...
2
votes
1answer
66 views

Emacs Mac OSX after upgrade to 26.2 launches only in `-nw` mode

I upgraded to Emacs 26.2 on my Mac OSX Sierra instance via "brew". After the upgrade, the emacs command will not open a new "GUI window", i.e. it runs as if I passed the -nw args or ran it from an ...
0
votes
0answers
19 views

Problem with the behavior of org-fontify-done-headline

I want entries with the DONE status to be greyed out, so in my init file I have (setq org-fontify-done-headline t) and I have added '(org-headline-done ((((class color) (min-colors 16) (...
1
vote
0answers
14 views

org-caldav synchronization freezes when using tags

I've finally decided to solely work in emacs, including my caldav-calendars, which I keep synchronized via my personal Nextcloud. I'm new to org-mode and trying to set things up. So far I've managed ...
0
votes
1answer
38 views

Why can't Emacs find counsel and swiper, even though they (and Ivy) seem installed, and Ivy working?

Why can't Emacs find counsel and swiper, even though they (as well as ivy) seem installed, and moreover Ivy mode is enabled, and seems to be working? This is what I get when I try the following: (...
3
votes
1answer
125 views

How remove lines which are not equal in two buffers?

Consider the following buffers buffer_1: 11111111 22222222 33333333 44444444 buffer_2: 55555555 66666666 22222222 44444444 I need to remove all lines which are not equal in buffer_1 and buffer_2. ...
2
votes
1answer
55 views

How to revert a buffer using the “g” shortcut

I can refresh my dired buffer using M-x revert-buffer and I've seen multiple places that I can do this more easily using g but don't understand how that would be run. Does it mean M-x g or running g &...
0
votes
1answer
33 views

Changing font size of a region or single characters

Is it possible in Emacs to change the font size of a single character or region, without affecting the whole Emacs window?

15 30 50 per page