All Questions

4
votes
2answers
123 views

Occur with many conditions?

If I want to show only lines that content "Buy" I use command occur: Like this: Nice. But I need to show lines that content "Buy" and 0.00000057 So the result must like this How I can do this by ...
1
vote
1answer
26 views

Trying to bind keystrokes to a menu item

I have a menu item added to AucTex's Command Menu, Latexindent. This calls an external process and is added in mu .emacs file by the following: (with-eval-after-load "tex" (add-to-list 'TeX-...
4
votes
1answer
462 views

What is the logic behind the weird lisp docstring (left) indentation?

Why is the third line in this code indented "too much" to the left? It feels "off" to me. (defun hello-world nil "Greet the world. This function implements the canonical example program." (...
0
votes
1answer
21 views

helm-mode-dired folder name completion selection without buffer opening

I use dired with helm a lot. Let's say I want to go to /foo/bar/baz folder. I press C-x d to start minibuffer prompt for directory. I type /f and I get 5 suggestions. When I C-n to the one that I need ...
0
votes
1answer
18 views

How to put Media Wiki source into org-mode document?

My current workflow for most things in life is to create a TODO item in org-mode, build the solution up in the org-mode entry before pasting it elsewhere. This has worked fine for me for quite a few ...
2
votes
0answers
50 views

Executing buffer twice in Python 3

I set up an environment to write Python 3 Code in my emacs (25.2.2) using python-mode and Elpy on Ubuntu 18.04. Strangely every time I use Python --> Send --> Execute Buffer the program is executed ...
0
votes
0answers
14 views

`fit-window-to-buffer` and `reposition-window` non-interactively

I'm using lean-mode and want to keep the *Lean Goals* buffer sized to fit its contents. Here's what it should look like: To get that working, I wrote the following and hooked it in to the relevant ...
0
votes
1answer
18 views

Emacs vs subversion with passtype gpg-agent

I'm currently setting up a new Ubuntu box for myself at work. I generally have my work related stuff under subversion. The default method for subversion to store passwords in Ubuntu seems to be ...
0
votes
1answer
13 views

Emacs26 on Windows 7, Why is Setting Mark shortcut toggling language instead?

I just installed Emacs26 on my Windows 7 64-bit computer and whenever I try setting a mark ctrl + <space>, it toggles the Windows language settings instead. M-x set-mark-command works as ...
3
votes
1answer
43 views

org-export latex pdf output does not render svg

I tried out this section of code from this repo #+LATEX_HEADER_EXTRA: \usepackage{svg} ... #+PROPERTY: header-args :eval never-export :file-ext svg ... #+NAME: sequence12422 #+BEGIN_SRC plantuml :...
0
votes
2answers
50 views

How to programmatically export org buffer to html ( mimic the org mode sequence `C-c C-e h o` )?

In brief: I would like to programmatically mimic the org mode sequence C-c C-e h o to export a buffer to HTML and open the web browser. My scenario: I have a written a shell-command (in my code ...
4
votes
2answers
40 views

Getting a org link to an mu4e message

I have my email setup with mu4e and I have org-mu4e so that when I capture a task, a link to the message is added at the end of it. However, I am wondering if there's a way to generate a link to a ...
0
votes
1answer
20 views

evil-mode unwanted abbrev expand (setq evil-want-abbrev-expand-on-insert-exit nil)

Upon escaping evil-insert-state, if the cursor is next to a letter/phrase in my abbrev list, it expands despite having (setq evil-want-abbrev-expand-on-insert-exit nil) called before evil-mode. ...
0
votes
0answers
25 views

Why IDO not show keybindings?

To kill line I use command kill-line (C-k) Nice. But why IDO not show keybinding for this command (C-k) ?
1
vote
2answers
30 views

Mac OS X: How to permanently change the prompt (value of PS1) in the shell of emacs client?

I have start emacs as daemon through (emacs --daemon). I then launch the client (emacsclient -c) and use its shell mode through (M-x shell RET). However the prompt starts with: bash-3.2$ I have ...
1
vote
1answer
51 views

Equivalent to `ido-find-file` functionality for ivy/counsel?

I really like how ido-find-file, if it can’t find a file matching your string (and you’ve let it idle for like a second), will search your whole home directory for files matching that string, and then ...
1
vote
1answer
27 views

highlight-regexp groups for syntax highlighting

I want to highlight certain words to a color using highlight-regexp. The words I want to highlight are "fn", "let", "mut", etc. for rust development. The code I have so far is this: (add-hook '...
0
votes
0answers
13 views

Prevent parsing of text inside verbatim org results block

How do I tell emacs to not not apply treatments to text within a block like this. My issue is that, the * foo at the end causes the export to go bad. I'm using something similar to carl's setup -> ...
0
votes
1answer
27 views

How to view email address details in mu4e?

I started using mu4e for email and would like to see the details of email addresses of both sender and original recipient. My default view is From: Some sender and I would like to see their address, ...
1
vote
1answer
44 views

Can’t guess python-indent-offset - delete warning when local file variable

I have this comment that I write in my python file # -*- Mode: Python; tab-width: 8; indent-tabs-mode: nil; python-indent-offset: 2 -*- # vim:set et sts=4 ts=4 tw=80: But when I load a python file, ...
5
votes
0answers
60 views

Why is cloning of file buffers prohibited?

Why does clone-buffer not work on file buffers. I can make it work by the following advice: (advice-add 'clone-buffer :around (lambda (oldfun &rest args) "Allow cloning file buffers." ...
1
vote
1answer
47 views

Keybindings not working?

I'm using spacemacs and I've added the following user config: (defun dotspacemacs/user-config () "Configuration function for user code. This function is called at the very end of Spacemacs ...
0
votes
0answers
26 views

Have Time showing up only in hours and not converted to days

I have a table were I get the time worked for this week. However it shows the time in "days hours minutes". I would prefer only hours. Is that possible? * work clock tasks week #+BEGIN: clocktable :...
2
votes
2answers
42 views

Opening file with emacsclientw, file name contains non-latin characters

My first post here about Emacs. I've spent days trying to figure out answer before posting here. I'm running Emacs 26.1 on Windows 10. The setup that I'd like to have is running a single instance of ...
0
votes
1answer
50 views

Customizing org-latex-title-command to edit title page

I would like to know how to go about editing and understanding org-latex-title-command. So far it is set to \maketitle but the documentation just has this: The command used to insert the title ...
-1
votes
1answer
30 views

Magit: add a full directory with magit-status

How can I add a full new directory with magit-status? When trying to stage a new directory from the magit-status buffer, pressing s, I can only add individual files within the directory, but not the ...
1
vote
1answer
50 views

How can I diagnose which `git` magit is running?

I'm trying to use Magit with TRAMP. The remote host has multiple git versions, necessitating (add-to-list 'tramp-remote-path "/usr/sup/bin") in my .emacs. However, when I run magit-status in a ...
1
vote
0answers
34 views

Ispell not working with Hunspell

I am unable to use Ispell, after the upgrade to Hunspell 1.7.0. It seems that the "-D" option does not return the loaded dictionary, therefore the function ispell-find-hunspell-dictionaries fails. ...
0
votes
0answers
20 views

Compilation using projectile

I would like to recompile my project in the background with a single key press. I am using a function like this: (defun my/recompile-quietly () "Re-compile without changing the window configuration....
0
votes
0answers
13 views

Look up Contacts in mu4e and macOS

I use mu4e for email inside Emacs. The server syncs some contacts that I can auto-complete and I would like to auto-complete based on the Contacts on the mac, in Contacts.app. Is that possible?
3
votes
1answer
104 views

fine-grained undo

How to make M-x undo more fine-grained or sensitive? Example: say, I wrote: foo (bar baz) () then I M-x undo and receive: foo (bar but what I want to get after this undo is: foo (bar baz)
0
votes
0answers
53 views

Org Export Latex: Defining Custom Classes for a Title Page From #+TITLE, etc keywords

I stumbled upon this archived email: https://lists.gnu.org/archive/html/emacs-orgmode/2011-02/msg01281.html and a suggestion is to create a custom title page that picks up the title, author, and date ...
2
votes
1answer
28 views

Viewing the number of words in org or text files in one of the details columns in Emacs Dired

Is there a way to display the number of words in org or text files in one of the details columns in Dired? This would save having to open each file individually and count the words by selecting the ...
2
votes
2answers
68 views

Are there hooks for leaving modes?

There seems to be a bug in clojure-mode (mentioned here) because it does things in a mode hook (for paredit-mode) but doesn't undo them when the mode is turned off. I understand that add-hook can ...
3
votes
2answers
135 views

Org agenda - show items that are in any of a list of categories

I have an org-mode file separated into multiple categories. I know I can create an agenda command that will show only items from one given category, like so: ("a" "Category A items" agenda "" ((...
0
votes
0answers
21 views

emacs transparent modeline bug

I am using remote desktop (xrdp) to access my emacs GUI. I find there is annoying transparency in the modeline and scrollbars. Not sure where this problem is coming from, is it from my xrdp server? is ...
31
votes
7answers
4k views

How can I start learning Emacs Lisp?

Background: I'm mostly a vi user and am converting to Emacs. Past the basics and now use it for writing code in C and some Python with plans to do an R conversion too. I wrote (Common) LISP for ...
2
votes
2answers
44 views

Result of math. operation - replace math. formula

If I want to do some math. operation I do next: (* 5 3) C-x C-e (eval-last-sexp) Here result: As you can see the result is in the minibuffer. Nice. But I need result to REPLACE math. formula. I ...
1
vote
1answer
50 views

No confirmation for changing global key bindings Interactively in Emacs

I have tried to add global key-bindings to Emacs interactively via M-x global-set-key by following the guidelines in the Emacs Manual. When I add a keybinding though there is no confirmation prompt so ...
1
vote
1answer
27 views

disable view prompt in AUCtex

I have been attempting to disable a prompt by auctex when pressing C-c C-c to view the document for close to the entire day. As I am a noob to emacs, I attempted to simply modify the auctex ...
0
votes
1answer
31 views

Emacs custom command help

I am pretty new to Emacs. Could someone please help me to write a custom command which I can add to my init file? It would do the following: Split the screen vertically to get two windows. Check if ...
3
votes
1answer
19 views

How to get TRAMP to respect group sticky bit?

In using TRAMP to create a new file in a remote (Unix) directory, I discovered that TRAMP is not respecting the group sticky bit in that directory. As is standard on a Unix system, the group ...
2
votes
1answer
51 views

Make region(s) invisible (not evaluated) to query-replacy and similar commands

Is there a way to make some regions of the buffer invisible (I mean not evaluated by) to query-replace and similar commands? Let me better explain with an example. Let's take a piece of LaTeX code .....
2
votes
0answers
32 views

Convert internal org-mode links to org-id links

I have a document with a large number of internal text links. Some are formatted like this [[Link to Heading]] while others have descriptive text: [[Link to Heading][description]]. I would like to ...
3
votes
1answer
50 views

Resize attached image upon sending mail in mu4e

I use mu4e for email. An attachment is simply text: <#part filename="/absolute/path/to/file" disposition=attachment> <#/part> Can mu4e resize the attachment upon sending, e.g. converting ...
1
vote
1answer
71 views

Bind C-return to org-insert-item

I want to bind C-return to org-insert-item (global-set-key (kbd "<C-return>") 'org-insert-item) When restart emacs, it does not work consult to describe-key it still return the default key ...
0
votes
1answer
29 views

Why does Evil autocomplete simpl. ESC to beta delta [] iota zeta.?

This might be a strange question but every time I type: simpl. <ESC> Evil substitutes it with: simpl beta delta [] iota zeta. this is driving me nuts. Why is this happening and more ...
0
votes
2answers
35 views

Loop through top-level headings in Emacs Org-mode

I want to apply (org-id-get-create) to every top-level heading in the buffer. How can I loop through all top-level org-mode headings in the current buffer?
1
vote
1answer
31 views

Emacs freezes when saving org file in org-mode

For some reason I cannot save files while in org-mode. This happened after I updated to a most recent version of org-mode. If I change to text mode I can save without a problem. I have tried C-x C-w ...
0
votes
1answer
22 views

org-capture template error: Template is not a valid Org entry or tree

I am running org version: 9.1.9 and have issues setting up a template for org-capture. I have read over the documentation but cannot figure out why my template throws this error when I call it: org-...

15 30 50 per page