All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
20 views

Help; how use Persistent Sets of Completion Candidates for search?

I want to use a set of files inside my directory ~/Dokumente to search for changes in title, content. So I saved such a set of file names persistently, using C-} during file-name completion with ...
0
votes
0answers
19 views

Send command to run in eshell, after compiled

So I've been mapping my M-x compile like this, according to c-mode-hook or c++-mode-hook: (add-hook 'c++-mode-hook (lambda () (set (make-local-variable 'compile-command) ...
1
vote
0answers
17 views

How to read the python documentation offline in emacs?

Sometimes I use ctrl h i or M-x woman, though I almost always head to the web for basic queries like python find line in string. Do I need to download this[0], that[1] or something else before leaving ...
0
votes
1answer
14 views

Automatically highlight elements in an XML buffer

I spend a lot of time in XML buffers using nxml-mode (Emacs 26). Out of hundreds of XML elements, I am only interested in one or two. How can I have Emacs always show the XML elements I'm interested ...
0
votes
0answers
11 views

org-mode call occur not function

Since I need to search some pattern frequently, I wish to write some code there then execute it in org-mode. for example: #+begin_src elisp :results output (defun myoccur (arg) (occur (s-replace " "...
0
votes
0answers
6 views

how to use bbdb-snarf to capture addresses from point

i want catch address information from point inside a buffer or from kill-ring. as far as i know, bbdb-snarf from bbdb3 would be a candidate to use. but it doesn't find email addresses or names from ...
0
votes
1answer
16 views

Restore after `maximize-window`

If I have multiple windows open, I can maximize one using M-x maximize-window. How should I restore the windows to their original size?
1
vote
0answers
28 views

keymap (overlay / text property): how to create and modify?

I'd like to have certain keymap active when the cursor is in a particular highlighted area. For instance, I would like to bind hl-todo-next to some easy key combination, but only when the cursor is on ...
1
vote
1answer
116 views

company-lsp complains about void function lsp--client-completion-in-comments

my emacs lsp-python setup is pretty standard: (require 'lsp-mode) (add-hook 'python-mode-hook #'lsp) (require 'company-lsp) (push 'company-lsp company-backends) (add-hook 'after-init-hook 'global-...
5
votes
1answer
3k views

GUI Emacs sets the exec-path only from Windows environment variable but not from .emacs file

I use Emacs 25.1 on my Windows XP laptop both as a command-line app (on ConEmu terminal emulator with MSYS bash as the shell) and as the GUI Emacs. I mainly use Emacs to test and compile programs, so ...
0
votes
0answers
36 views

Regular expression for finding 'href' attribute value of <a> HTML element

I need a regex pattern for finding web page links in HTML. For example <a href="https://www.google.com/search?q=elisp+regex+lookaround" ....></a> I can use (?<=href=\").+?(?=\") | (?&...
0
votes
0answers
11 views

TCL is adding different tab widths in the program

I am trying to rearrange the columns of below file input.txt, Contents of this file: Name Location Purpose --------------------------------------------- Andy US Business1 ...
0
votes
1answer
32 views

How to check whether an optional param was input?

I have a command with an optional argument whose value is a number. I need: If no input argument then use default value (1000) else use input arg. (random t) (defun insert-random-number-at-point(&...
1
vote
0answers
29 views

LaTeX fragment preview includes font name in Org-mode

Since I have to export some CJK characters in LaTeX, I have the following two lines in an .org file : #+LATEX_HEADER: \usepackage[BoldFont,SlantFont]{xeCJK} #+LATEX_HEADER: \setCJKmainfont{HanaMinA} ...
4
votes
2answers
720 views

Detecting variable changed outside customize

I have used "Customize" to set a value for semantic-lex-c-preprocessor-symbol-file. However, after loading up .emacs, this isn't the value I see. On opening up the "Customize" menu for this variable, ...
-1
votes
1answer
98 views

ob-async issue, seq-random-elt not defined

I would like to asynchronously run code blocks in org mode. My org mode version (org-version output) is: Org mode version 9.2.1 (9.2.1-23-g126a37-elpa @ /home/user/.emacs.d/elpa/org-9.2.2/) I ...
0
votes
1answer
14 views

“Run all code blocks above this point” in org-babel?

I know you can use org-babel-execute-src-block (C-c C-c) to execute individual code blocks, but is there something akin to "Run all chunks above" that RStudio has for Rmarkdown files?
0
votes
1answer
34 views

org-agenda not showing any todos

No items are showing when I load the agenda view. When I press C-c a, the agenda view menu comes up fine. But hitting a brings up an empty list, and so does t. M-x describe-variable RET org-agenda-...
0
votes
0answers
10 views

How to get first nested parameter indented based on outermost function

I would like to get the following cc-mode indentation behavior (c-basic-offset is 4): outerFunction(innerFunction( parameter1, parameter2)); However I would like to maintain arglist aligned ...
0
votes
1answer
44 views

Evil, How do I display visual range in mode-line

I'd like to see the size (number of rows and/or columns) of the visual selection in my mode-line. I use evil. How do I do that?
1
vote
0answers
18 views

org-mode : how to get more space between 'List of all TODO entries'

C-a-t is bound to `org-todo-list (i.e., "List of all TODO entries"). Is there a way to add space between each row in the *Org Agenda* output buffer when the list is displayed?
0
votes
0answers
16 views

C-g doesn't work within Counsel's action menu (M-o)

Let's say I'm completing a file with counsel-find-file. I then press M-o to show the menu with available actions. If within that menu, I press C-g, I get the message "C-g is not bound". The ...
1
vote
1answer
863 views

How do I live preview markdown, rendering math, checkboxes, etc.?

I’m using Spacemacs with markdown-mode and I’ve configured it according to Jason Blevins’ guide. Other things I’ve tried Pandoc works pretty well except when I set the —lua-filter=task-list.lua flag ...
0
votes
0answers
36 views

Emacs font style and colorisation

I am used to Emacs under Windows 10 and trying to switch to Ubuntu. My Windows 10 Emacs font is M-x describe-font: name (opened by): -outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-...
0
votes
0answers
22 views

(octave-mode) highlighted region remains highlighted after command

I am in octave-mode running an inferior octave shell. Now I mark a region and issue 'octave-send-region'. All commands are executed as expected and echoed in the shell buffer, and the highlighting is ...
0
votes
0answers
10 views

Markdown equivalent of `org-indent-mode`?

What's the simplest way of ensuring that the text below a headline in a Markdown file is aligned with the headline? In org-mode you can accomplish this by calling org-indent-mode. Is there a similar ...
0
votes
1answer
34 views

How do I run an external command on an org mode source block?

I'm writing a screenplay using Fountain mode. My org file is set up so there are multiple screenplays in a given file, for example * Number one! #+begin_src fountain INT A PARK IN SAN FRANCISCO ...
0
votes
0answers
13 views

gnutls-negotiate: GnuTLS error: #<process smtpmail<1>>, -15

Following Sending Mail Since no credentials are given in this configuration, Emacs will look them up in $(HOME)/.authinfo or $(HOME)/.authinfo.gpg (encrypted). The content of this file should ...
0
votes
0answers
13 views

How to make helm matching faces inherit from ivy?

I like Ivy face when matching better than helm for the particular theme I am using. When listing all faces: list-faces-display I see that I want helm matching to be exactly like: ivy-minibuffer-...
0
votes
0answers
12 views

insert email address into bbdb3 from icicle completion candidate

Is there any Icicles function or a possibility, to add the selected candidate from the *Completions* buffer as a new record into the bbdb3 database? I tried M-RET and selected bbdb-create as the ...
0
votes
0answers
40 views

How to search certain subdirectories of directories that are ignored by Git

I'm working in a Scala project that has target/ directories entered as ignored in the .gitignore. However, there is also Scala code being generated during the build which is being nested under a ...
3
votes
1answer
34 views

Magit: Howto create a new commit ignoring white-space differences

I'm using magit 20191128.39 on Emacs 26.3 When changing a python script resulting in a new unstaged change, git/magit should ignore whitespace-differences. A git diff -w will do the trick, but I'd ...
0
votes
3answers
66 views

Killing current buffer reliably

I try to add a nicer key binding to kill the current buffer. An obvious solution is to use kill-this-buffer, but often it does not work, or e.g. does not work the first time. The key binding for it ...
0
votes
2answers
42 views

How to make an alist without repeating key/values?

When writing an alist where all the key/value pairs have keys that are variables, is there a convenient way to write this in Elisp without repetition? eg: `((foo . ,foo) (long-variable-name . ,...
0
votes
1answer
38 views

How to show trees from archive files by default (a.k.a. (org-agenda-archives-mode 'files))?

I want my default agenda view to include archived trees from .org_archive files. From the manual we learn: v a (org-agenda-archives-mode) v A (org-agenda-archives-mode 'files) Toggle ...
1
vote
2answers
62 views

How to make a temporary directory that gets deleted once the body is finished?

Is there a way to temporarily create a new directory, then remove it when the body of the code has finished? (with-temp-directory path (write-test-files-into path) (other-test-functions path)) ;...
0
votes
1answer
101 views

Add timestamp to repeating task when marked DONE

Say I have this task: * TODO Task SCHEDULED: <2019-12-21 Sat 13:00 +1w> and I mark it done the day after. Then, the timestamp becomes <2019-12-28 Sat +1w> and I lose the previous entry,...
0
votes
0answers
22 views

export org to pdf not working: PDF was not produced

installed emacs and Latex ()texlive and texlive-latex-extra) on ubuntu. Exported an Org file to PDF with no success. message is : "pdf was not produced. See "Org PDF LaTEx Output" for details" This ...
0
votes
2answers
166 views

ein login error due to curl version not support compressed

I am using win10, emacs version is GNU Emacs 26.3. python version is Python3.6.8. After install EIN (EIN version is 20190813.2156) package and try to run M-x ein:login, I got below error message: ein:...
0
votes
1answer
17 views

Completing underscored words without making _ a word character

I would like to use evil-complete-previous (or whatever) to complete strings_such_as_this, which is by default not possible. It is possible after (modify-syntax-entry ?_ "w"), but this has the ...
0
votes
2answers
105 views

Tracking time spent typing in a buffer

Say if I’ve a buffer, is there a package or hack to track time that’s spent typing/editing on this buffer (ignoring idle time)?
1
vote
0answers
28 views

How to pass bash commands from a script to terminal?

Let's say I have a bash script. Is there a way I can pass specific lines or blocks in the script to terminal process in EMACS? Just like how we do for R script using command C-c R
1
vote
1answer
20 views

Keep ivy-initial-inputs-alist nil after counsel loaded

I want to keep the alist ivy-initial-inputs-alist nil after ivy and counsel are loaded. Therefore, I have the following configuration: (use-package ivy :ensure t :config ;; some keybindings ...
1
vote
0answers
24 views

How to assign new keybinding to Ctrl-i but keep Tab key unchanged? [duplicate]

I want to give a new key binding to Ctrl-i, but when I do that TAB key also maps to the new key binding that I have assigned to Ctrl-i. => Is there any way to give a new keybinding to Ctrl-i and keep ...
1
vote
1answer
81 views

Browse url at point when clicking and pressing super

I am trying to make emacs open the url displayed under the current point when I left click and press the super key at the same time. I am trying with this code but it does not work (global-set-key (...
1
vote
2answers
289 views

Spacemacs: change prefix key from `SPC-b` to `SPC-v`

I use buffer (SPC-b) prefix key very often, and would like to move its keymap to a more convenient key (e.g. SPC-v). Is there a way to achieve this without redefining the entire map? so I would like ...
1
vote
1answer
22 views

How can I add a name to prefixes?

My current config looks like this: (use-package general :ensure t :config (general-define-key :states '(normal visual insert emacs) :prefix "SPC" :non-normal-prefix "C-SPC" ;;...
6
votes
3answers
3k views

how to add date and time into spacemacs' mode line

I usually use Spacemacs in maximized window, thus the date and time presented in mode line is a must. I understand that spacemacs uses powerline mode to mimic vim, the manuals of both spacemacs and ...
2
votes
1answer
58 views

Set mark when jumping from emacsclient

I use AucTeX to edit LaTeX files and a PDF viewer that supports inverse search using SyncTeX. When I click on a location in the PDF, it simply calls emacsclient with the corresponding file and line. ...
1
vote
1answer
188 views

How to open an IRC session using SASL?

I would like to exchange on Freenode using ERC, however I do not know how to authenticate with SASL as required. -xxxxxx.freenode.net- *** Lookup up your hostname... -xxxxxx.freenode.net- *** ...

15 30 50 per page