# All Questions

16,417 questions
Filter by
Sorted by
Tagged with
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 ...
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" "...
12 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 ...
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 ...
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-...
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 ...
36 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.
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?
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. ...
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 ...
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. ...
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 ...
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 ...
23 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 ...
39 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.
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))) ...
31 views

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-...
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. ...
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-...
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 ...
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 ...
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 ...
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 ...
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 ...
16 views

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.
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 ...
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 ...
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 ...
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 ...