All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
8 views

insert cursor postion in org-structure-template-alist

It's easy to insert source code template in org 9.1 by it is configured as ("s" "#+BEGIN_SRC ?\n#+END_SRC") Of them, ? for cursor position, unfortunately, it does not work in 9.2 Custormize ...
1
vote
1answer
12 views

Local variable's state mutated across function calls [duplicate]

I was surprised to discover that a local variable can have it's state modified across function invocations. Consider the following example. (defun example-mutable () (let ((x '("the" "quick" "...
1
vote
0answers
14 views

mu4e query search for emails larger than certain size

I've looked in all the examples given in queries of mu4e email but couldn't find an option that returns all emails larger than a certain size (for example 10MB). I think this is relevant if one is ...
0
votes
0answers
10 views

How to set up Emacs Tide to use auto-complete for completion instead of company-mode?

I installed Tide in Emacs, and found it is pretty useful for writing JavaScript code. But one thing is that Tide has built-in support for company-mode to do completions. Since I am an auto-complete ...
0
votes
0answers
18 views

Enable spell check with american dictionary for all buffers

I have an init file that loads two files: one from customization done from within emacs and other from my custom settings file - better-defaults.el. I have tried various options like ispell-local-...
0
votes
0answers
5 views

How to disable TIDE when using Indium scratch buffer

I'm learning Javascript and my setup is Indium + Tide, The setup works well and I can follow all the exercises in the book. But when I try to use the Indium scratch buffer M-x indium-scratch It opens ...
1
vote
1answer
37 views

How to calculate a point N lines from another point in elisp?

Given a point, how can I get the point N lines before/after it? Will post own answer, but I'm not sure it's optimal.
1
vote
0answers
17 views

How to detect the modifier key state with track-mouse?

When using track-mouse pressing modifier keys doesn't generate events. Is there a way to detect if any modifier keys are held while tracking the mouse?
1
vote
0answers
21 views

How to tell Ivy to use completing-read-default for specific command? (org-tags-view, in particular)

Ivy (+swiper +counsel) is very cool and I use it constantly for an ever growing number of tasks. But there are some cases in which the requirements of a certain completion task defeats Ivy's logic. ...
0
votes
1answer
16 views

how to test which org mode publish backend is in course in a export filter?

Why is my org mode publish derived backend not reconized in the code snipped below? (if (org-export-derived-backend-p backend 'jekyllHtmlPost) This is my complete init.el ;;; package --- Summary ...
0
votes
0answers
27 views

Emacs slow when launching GUI

I have a weird problem. When I launch emacs GUI by double clicking the icon, or using open -a emacs in the terminal, or calling the application from alfred/spotlight it takes 4-8 seconds to launch. ...
0
votes
0answers
8 views

spacemacs: show yasnippets at top of completion popup list

yasnippet can be integrated into auto-compltion in spacemacs. I want to show snippets at the top of the auto-completions list. Default is at bottom. foo_______________ |foo -> foo snippet| |foo ...
0
votes
0answers
16 views

irony-mode producing too many errors

I am trying to use irony-mode with my project. I have installed the irony server using irony-install-server. I also have a CMakeLists.txt to produce the makefile for my project along the compile ...
1
vote
2answers
24 views

Copy all dirs exclude all subdirs with name “build”

emacs 26.1 dired+ I have dir my_dir. This dir contains 10 subdirs. In every of those dirs there are 2 subdirs: src build I need to copy in DIRED MODE all dirs and files from my_dir to my_dir2 and ...
0
votes
1answer
40 views

Replace text with latex

I wondered if it is possible to make emacs replace occurences of a/b with $ {a \over b} $ , where a and b are integers or letters in the text.
1
vote
2answers
29 views

How to prevent scroll up doing nothing when the value is too big?

When calling (scroll-up N) with a large value that would exceed the buffer length - nothing happens. For example: (global-set-key (kbd "<f4>") (lambda () (interactive) (scroll-up 10000))) ...
0
votes
0answers
31 views

Failed to download 'gnu' archive

I tried to install emacs and in an attempt to install MELPA, tried: (this is my init.el file) (package-initialize) (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")) (add-to-...
0
votes
1answer
5 views

Spacemacs Clojure Cider Debugger Gives Error, “No reader function for tag dbg”

After connecting Cider to Spacemacs, when trying to set a debug breakpoint on a function using ,-d-b (cider-debug-defun-at-point), I see the following message in the *cider-error* buffer. 3. ...
1
vote
2answers
82 views

execute result block as shell commands

I would like to build a shell command using elisp and then printing the result so it is stored in a #+RESULTS block and from there execute that result block as a shell command still inside the org-...
0
votes
0answers
13 views

Org-capture template with deadline of one month from today

As it seems, org-mode capture templates mechanism maybe have changed? I'm using: Org mode version 9.2.4 (9.2.4-10-g3b006f-elpaplus) What I'm trying to do is to have a capture template that will ...
0
votes
0answers
6 views

Changing the tangling destination

If you call #'org-babel-tangle in a source block beginning with #+begin_src tex :tangle irs.tex The tangled file will normally end up in the current directory, which will be the directory containing ...
0
votes
0answers
28 views

Is there a way to start org-mode agenda with a custom search?

I would like to start an org-mode agenda with a custom tag search (rather than starting the agenda and then doing the search). The overall goal is to make a work and a personal agenda. I can make ...
1
vote
1answer
29 views

Regex: Don't Match Text Between Curly Braces (LaTeX Commands)

I've been using pandoc and emacs to convert beamer presentations to markdown format. In the beamer presentations we highlighted certain code in example code blocks red. Pandoc has left me to get rid ...
0
votes
0answers
12 views

starting emacs from the commandline and setting line wrap to 60 - howto? [duplicate]

I'm new with emacs and come from joe. There I started editing mail with the option "rmargin" which set the right margin for my mail at column 60. I can't find a similar option in emacs? Is there ...
0
votes
0answers
16 views

Use ssh-agent's SSH_AUTH_SOCK value, not macOS' one

When I run (getenv "SSH_AUTH_SOCK"), I get "/private/tmp/com.apple.launchd.K9OEFgxDgw/Listeners". I want to set it to the value that is returned by echo $SSH_AUTH_SOCK on the command line which is ...
1
vote
1answer
17 views

Mark isearch results

I'd like to mark regex isearch results so that they can be copied or cut (killed) via M-w and C-w. Is there a ready-made function for this? The solution below provided by @danielpoe over here copies ...
0
votes
0answers
13 views

How can the results of an emacs function be spliced into a shell invocation?

I am trying to search using grep but in a number of non-nested directories so I need to pass the directories to search through some emacs functions. Some of the functions I have in mind are: The ...
1
vote
0answers
12 views

execute-kbd-macro apparently not working according to its doc?

The doc of execute-kbd-macro says: (execute-kbd-macro MACRO &optional COUNT LOOPFUNC) ... If MACRO is a symbol, its function definition is used. I tried M-: (execute-kbd-macro 'ignore). ...
1
vote
0answers
17 views

Mandatory capturing data before every org file is modified

I have to create a list of documents I modified or created in a day. I use org-capture to create it. I use following org capture template to capture the data when I start working on the file ("c"...
0
votes
0answers
9 views

python-shell-completion-native-enable and python-shell-completion-native-disabled-interpreters’

Upon invoking C-c c-c on the source code, it prompt errors Warning (python): Your ‘python-shell-interpreter’ doesn’t seem to support readline, yet ‘python-shell-completion-native-enable’ was t ...
0
votes
1answer
27 views

Undo code evaluation

Can the evaluation of code snippets be undone in emacs? Or do I have to restart without having the code sitting in init.el to bring the system back to its previous state? I tried out this code with ...
2
votes
1answer
28 views

How to launch term at startup in Emacs?

I need to have Emacs open a terminal at start-up automatically (in order to use Fish in the terminal and use Emacs to for example search the Fish output). Normally I do this with 'M-x term'. Is ...
0
votes
0answers
9 views

prettify-symbols as a compilation-mode filter

I would like to use prettify-symbols, or a similar feature, in a compilation-mode. It doesn't work out of the box by enabling prettify-symbols-mode. I could naively implement this with a search/...
0
votes
1answer
20 views

How to align “end of line comments” in sh-mode?

I moved to column 60 of the first line and evaluated set-comment-column. Then I moved to the second column and called indent-for-comment, but it indents the comment randomly but not at column 60. How ...
2
votes
2answers
50 views

How to show all functions in a javascript file?

How to show all functions in a js file? I am using js2, but any solution will do. Additional info: I am expecting an occur style buffer. This can persist and be edited if necessary. Or searched. This ...
0
votes
0answers
9 views

Getting permissions errors related to /var/folders directory after doing mac migration

I am running spacemacs emacs and recently had to migrate my macbook to a new macbook. After doing that, I am having trouble using magit. When I try to commmit using magit from the magit status ...
1
vote
1answer
26 views

Agenda view with 'logic'

I'd like to set up agenda views with some logic. So example Todo state is NEXT with no schedule date. Can someone point me to some resources to make sense of this ?
1
vote
1answer
26 views

Indent code block in org mode headines

How I can indent code block to align it to the begining of #+BEGIN_SRC ? Right now it looks like this and I would like to be like this
3
votes
1answer
122 views

How to apply arithmetic operators to query-replace-regex

I am attempting to replace all "begin" and "dur" attribute values in my SVG code with one-tenth of (or ten times) their current values, in order to speed up/slow down animation for testing/debugging ...
0
votes
3answers
28 views

Automaticaly insert '~' Symbol before and after a “Marked Expression”

I am documenting Code a lot. For exporting purposes I often have to add a '~' infront and after an Expression. For Example "Adc_Cfg.c" needs to get "~Adc_Cfg.c~". That way the Export to PDF via latex ...
1
vote
1answer
19 views

Running Emacs server from snap installation

I've installed Emacs 26.2 using snap on Lubuntu 18.04. I'm trying to figure out how to get the server/client/daemon going. I've done as instructed on EmacsWiki: "Emacs Client" by putting (server-...
0
votes
1answer
17 views

How can I open dired with reversed sorting of name, and with the cursor on the first line?

I use the following initial code to open one om my frequently used folders: (global-set-key (kbd "C-6") (lambda() (interactive) (find-file (format "C:/Users/%s/notes" user-login-name) ))) ...
0
votes
1answer
21 views

How can I start dired in omit mode?

I use the following code for including dired omit mode: (require 'dired-x) (setq dired-omit-files "^\\...+$") (add-hook 'dired-mode-hook (lambda () (dired-omit-mode 1))) ;(dired-omit-mode 1) When I ...
2
votes
1answer
29 views

If frame is maximized?

Is it possible (using only emacs-lisp) to find out if the current frame is maximized? Not fullscreen, but maximized.
0
votes
1answer
32 views

Why is hl-line+.el not a package?

Apparently hl-line+.el solves certain performance problems of hl-line-mode. It is created in 2006, and last updated in 2018. Despite that, it was never packaged to be available at e.g. melpa, which ...
1
vote
0answers
16 views

Open code snippet from org-mode with C-' in a vertical split instead of an horizontal one

In org-mode, I open a code snippet with C-' (org-edit-special) to edit it in a separate split. By default, it opens it in a horizontal split. Is there a way to open a code snippet from org-mode with ...
1
vote
0answers
25 views
+50

Selecting a file via helm using multiple sources

I have a customized find-file that uses helm sources to help load a file into my buffer. Now, however, I would like to be able to select a file using the same algorithm and store that filename into a ...
0
votes
1answer
13 views

Elisp to increase font-size in indirect buffer

I use org-mode for writing and frequently use a two pane setup, similar to the one described here: Org-mode 2-pane writing setup using indirect buffers (or display-buffer-alist. I have an outline on ...
1
vote
0answers
15 views

Text overflow in agenda views

I am not quite sure what the best way to describe what I'm looking for is, so let me start with a picture. This is the result of doing a search for all TODO items in my agenda-files with a certain tag....
0
votes
1answer
26 views

scheme not working in org soure code

After enable scheme in babel and restart the emacs, Run the codes #+BEGIN_SRC scheme (define (A x y) (cond ((= y 0) 0) ((= x 0) (* 2 y)) ((= y 1) 2) (else (A (- x 1) ...

15 30 50 per page