All Questions

0
votes
1answer
22 views

cmake-ide defining variables

I have a project I build using cmake. To build this project, I need to define several options like -DPRODUCT=amd64 -DXML_DIR=/opt/xml_database Normally, I either pass these as -D or configure them in ...
0
votes
0answers
13 views

columnview vs ID

I would like to produce a table which filters by ID using columnview, is it meant to be used as a filter? using org 9.2.2, emacs 25.2.2, linux * columnview filter test :PROPERTIES: :COLUMNS: %ID ...
0
votes
0answers
14 views

Inconsistent behaviour on title-format handling

I try to set the frame title to projectile-project-name: buffer-name when focused, projectile-project-name when not. I use the following title-frame-format and hooks to achieve that behaviour: (setq ...
1
vote
0answers
22 views

How do I use org mode to export a link to a relative URL? [duplicate]

I'm exporting an org file to HTML that will live at http://example.com/foo/bar.html and also at http://another.url/a/b/c.html. I'd like to write some org syntax that exports links to other files on ...
1
vote
2answers
40 views

Add additional function to cua-mode processing for `C-c`

I'm running cua-mode, and I'm trying to override the cua binding for C-c so that I can insert a function somefunc before passing the baton to the original cua binding which is cua-prefix-override-...
0
votes
0answers
30 views

Why eshell lists my host environment variables when I am connected to other machine via ssh?

I am connected to another machine using tramp and my eshell does send all the commands to remote machine but when I do echo $PATH it prints me my local PATH. Why?
1
vote
1answer
35 views

How do I specify a daemon to start with alternate emacs version with emacsclient

I have found this script from here #!/usr/bin/env zsh # Checks if there's a frame open emacsclient -n -e “(if (> (length (frame-list)) 1) ‘t)” 2> /dev/null | grep t &> /dev/null if [ “$?”...
5
votes
1answer
63 views

Not found lisp reference manual within emacs

I was expecting the Emacs Lisp Reference Manual at (C-h i m elisp). But there was no menu elisp or lisp there. C-h v and C-h f work fine for variables or functions though. C-h i 5 takes me to file ...
0
votes
1answer
28 views

org-mode: how to print agenda showing only some categories

I'm trying to print today's agenda hiding some categories. I'm using C-u < to hide the categories I don't want, but when I print (either the buffer or by selecting the text and using lpr-region), ...
3
votes
1answer
66 views

Almost working smoothly attempt to get terminal Emacs to copy to clipboard

I'm running this emacs GNU Emacs 25.2.2 (x86_64-pc-linux-gnu) of 2017-09-22, modified by Debian directly in a Gnome terminal by calling emacs, which is actually a link to /etc/alternatives/emacs. ...
1
vote
0answers
24 views

How to add to top of collapsed header tree?

Is there any way to default adding text to the top (rather than bottom) of a collapsed header tree? Say I have these headers * Main header ** Notes *** Notes sub-section 1 ** Subheader 2 *** ...
1
vote
1answer
65 views

How to execute external commands from an Eshell script

I would like to create an elisp function such as (defun script() (run "bash" "-c" "echo 1; sleep 3; echo 2") (eshell-print "Done")) From an Eshell, its execution should look like: eshell $ ...
2
votes
0answers
23 views

Automatically wrap text with smartparen

Using smartparen, if I have some text I can select it then press ( { or [ and the text is wrapped in those braces. How can I extend this functionality so that (in Latex for example) if I press $ the ...
2
votes
1answer
39 views

How to tell YASnippet to ignore placeholder?

I have a shell script which uses an array to check dependencies. I'd like to make this into a YASnippet, but YAS recognizes the array value statement ${dependencies[@]} as a placeholder. How can I ...
0
votes
1answer
16 views

Problem with org-insert-link and yas-expand

I have a problem when I want to yas-expand a link in Org-mode and it has a dash (-) in the text (url and description). Then the snippet break and exits. If I do the same in fundamental-mode it works. ...
1
vote
2answers
22 views

Enter a string interactively on specific keyboard shortcut

I'm new to this kind of Q&A site. Now I'm writing some article using Sphinx (reStructured text). Writing an equation (like E = mc^{2}) in Sphinx is a little bit demanding, because you have to ...
0
votes
0answers
38 views

(line-pixel-height)

I've a block of 10 or so lines. Some show 19 pixels using M-x eval-expression (line-pixel-height) - this looks normal for my settings. Others, however, appear about 3 lines high and show 66 pixels ...
1
vote
1answer
38 views

Using an org-table formula to sum up weekly time cards

I'm filling my time cards in an org-table like below. Is there a way to fill the column Totals automatically with a formula? For the individual lines in a project task, I'd like to sum the hours ...
1
vote
1answer
27 views

emacs opens ESS/R buffer in random window

I'm using emacs 26.1 with ESS. Whenever I open a R session with M-x R it opens in a random window. However, I would like it to open in the currently selected window. It seems to be a similar issue as ...
0
votes
0answers
25 views

org-mode occur-tree multiple tags

I am trying to add an agenda custom command that shows me a sparse tree of items contain either NEXT or TODO using occur-tree. When I run M-x org-occur RET NEXT\|TODO manually, it works fine. ...
0
votes
0answers
25 views

ein: [info] Failed to save notebook

I'm using Windows 10, Emacs 26.1, IPython 7.2.0, and ein 20190228.2008. C-x C-s gives the error: ein: [info] Failed to save notebook! . I'm able to save the files through the web interface. As per #...
0
votes
0answers
14 views

browse-url doesn't get href from html formatted mails

I'm using notmuch (https://notmuchmail.org/notmuch-emacs/). When viewing the HTML part of a mail that has a link (using a href tag), I can right-click on it and select "Open Link in <browser>". ...
0
votes
0answers
11 views

How to disable helm completion for vc-git-grep

I recently started using helm and I like it for certain things but it has broken vc-git-grep for me. I have M-. bound to vc-git-grep and my fingers have a strong muscle memory. It usually pulls a ...
0
votes
0answers
13 views

org-mark-ring-push question for external links

The emacs documentation says the following about org-mark-ring-push C-c % (org-mark-ring-push) Push the current position onto the mark ring, to be able to return easily. Commands following ...
0
votes
0answers
21 views

Connection problem to Github

When I try to evaluate a Quelpa expression that fetches a package from Github, it throws the following error Debugger entered--Lisp error: (error "Command ’(env LC_ALL=C git clone https://github.com/...
0
votes
0answers
14 views

How to make an Org Column View dynamic block for multiple files?

I'm trying to find a way to make a Dynamic Block of columnview for all the files in my agenda. For example: the column view of one file would be like this: #+BEGIN: columnview :hlines 1 :id global ...
0
votes
1answer
42 views

texmathp in isearch-filter-predicate breaks query-replace's match highlighting

I tried to use texmathp with iserch-filter-predicate to let query-replace function skipping maths in my LaTeX code. I wrote this code: (defun skip-math (beg end) "Return nil if some text BEG to ...
2
votes
0answers
40 views

How to control JavaScript indentation?

I am coding in Node.js, each time I want to write something that looks like this: const product = Factory .model('App/Models/Product') .create() I get this as an output: const product = Factory ...
3
votes
1answer
50 views

Check latex \left \right balance

I've found a function for checking parenthesis/brackets balance. Full code is in the bottom. I wanted to use it to check LaTeX commands like \left(/\right), \[/\] etc. How can I modify this function ...
2
votes
1answer
40 views

Is --script a valid emacs switch?

When I execute emacs --batch --script=/home/jim/test.el --no-site-file --file=testing I get: Cannot open load file: no such file or directory, /home/jim/--script=/home/jim/test.el While emacs --...
0
votes
0answers
28 views

`M-%` is interpreted as `M-5` (prefix arg of 5)

On one of my machines the query replace key sequence (M-%) isn't recognized, and is instead recognized as M-5, which acts as a numeric prefix argument of 5 (e.g. inserts 5 copies of the next character ...
1
vote
0answers
20 views

How to make `helm-projectile-grep` do a recursive search?

I use helm with projectile and treemacs, how do I make helm-projectile-grep command to search in all project folders recursively starting at the project root. According to this page helm-projectile ...
0
votes
1answer
37 views

Marking a TODO item DONE with or without a timestamp

it was established in a previous post that (setq org-log-done 'time) should be substituted for (setq org-log-done t) in the init file, so that C-c C-t would close a TODO with a timestamp. I would like ...
1
vote
1answer
22 views

How do I use tramp to launch a remote PowerShell?

I'm trying to launch a PowerShell on a remote Windows system using tramp. So far all I've been able to do is start a PowerShell inside Emacs on the local (Windows) machine. What is the connection ...
1
vote
1answer
37 views

How can I change what happens when I click on a pdf-tools link?

I read pdfs with pdf-tools, but I think what I'm asking may apply to more than pdf-tools alone. In any case, as an example, some research paper pdfs have references with clickable links - say a link ...
1
vote
0answers
25 views

Is there a way to disable multi-line string literals in c++-mode?

Suppose I have a short string in C++ and I accidentally delete the double quote that ends it. What Emacs does is highlight the rest of the code as a single very long string, which messes up all the ...
0
votes
0answers
47 views

How to make mu4e and Emacs the default email program?

On macOS, when I click an email link <a href="mailto:...">, it opens Mail.app that ships with macOS. How can I change it to mu4e in Emacs?
0
votes
0answers
17 views

decrease initial delay for line-up/line-down movement

so every time I press C-n or C-p for moving the point up and down and keep pressing n or p I move several lines. However, after the first line move, there is a delay before the point is moving down in ...
0
votes
1answer
31 views

does one has to explicity enable python-mode etc. to work with python files?

Sometimes I see people talking about enabling python-mode and so on. Is that only necessary for older emacs versions? I thought, the respective mode is enabled automatically when opening a ...
0
votes
2answers
43 views

How fast remove selected text

Emacs 26.1, Windows 10, package iedit Suppose I want to delete text onMessage I select this text by iedit-mode (C-;) To remove selected text I press many times button Backspace Nice. It's work. ...
1
vote
0answers
9 views

Tell semantic to ignore header file

For good or for ill our project has some generated header files that contain binary data const unsigned char __attribute__ ((aligned(4))) image[238560] = { 0x00, 0x00, 0x00, 0xff, ... ... } Which ...
0
votes
0answers
8 views

Indirect-buffer from Agenda view to the right, not below

After I create an agenda view with the match command, I'd like to work with the resulting agenda view as a table of contents, using it to trigger indirect buffers for the headlines in the agenda view, ...
0
votes
0answers
24 views

Fill placeholders with dynamic values upon exporting a org document

I would like to create an invoice exported from an org document. At the moment I have a clock table which shows the total number of hours I want to bill. I would like to have a part of the document ...
1
vote
0answers
73 views

AUCTeX is obsolete on GNU ELPA?

I got this warning when installing AUCTeX from GNU ELPA. The package is installed, but I don't want to use obsolete packages for obvious reasons. I have check the official website of AUCTeX, and it ...
1
vote
0answers
13 views

Exclude entries in custom agenda views based on Level

I'm trying to configure a custom agenda view. I'd like to search through an .org file by matching tags, but then only show the top-level headline. I.e., suppose my org-file looks like this. * Heading ...
0
votes
0answers
21 views

Run a function before/after magit runs git

I'd like to run a function before magit runs git, and another one after magit runs git. I see magit-pre-start-git-hook but I don't see any post-finish-git hook. How can I run commands before and after ...
0
votes
1answer
29 views

How to export from Org mode to HTML excluding all but <body> content?

Is there a way to export to HTML from Org mode without the extra content at the top of the document? For example, is it possible to export only what would be inside the <body> tags and ignore ...
2
votes
0answers
23 views

Speedbar tag hierarchy in Clojure - organize manually with comments?

If I run speedbar and call (speedbar-add-supported-extension ".clj") in init.el, then I see my Clojure files in the speedbar, and I can expand them to show the function definitions inside, like this: ...
0
votes
1answer
20 views

ESS smart underscore does not work in emacs25

Previously when I used the underscore key in my keyboard ESS replaced it for the assigment keys <-. In emacs25 that no longer happens. I have installed the ESS package from MELPA, as well as, it's ...
1
vote
0answers
9 views

After 0 kbd macro iterations: read-kbd-macro: Variable binding depth exceeds max-specpdl-size

Here my kbd macros in mycustom.el (fset 'keep-tv-channels-names (lambda (&optional arg) "Keyboard macro." (interactive "p") (kmacro-exec-ring-item (quote ([134217848 107 101 return 69 88 84 ...

15 30 50 per page