All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
2 views

Iterate with both value and index

I want to iterate over a list with both the index and the value in the loop. Currently, the code looks like this: (let ((my-list '(a b c))) (cl-loop for index below (length my-list) for ...
0
votes
0answers
5 views

emacs c++ gud cannot skip non existing file, making it unusable

I have this file: #include <string> using namespace std; string remove(string s) { return s; } int main() { string s1 = "aaaa"; string s2 = remove(s1); return 0; } g++9 ...
0
votes
1answer
10 views

Org #+INCLUDE: turning what I want to be a 2nd level header into a 1st level header

Test case: a.org * This is a big section I have some content here ** And a second level section And more content here *** And a third level section And more content here b.org ** I ...
0
votes
1answer
18 views

How can I reliably create latex classes in org mode?

I'm trying to modify my .emacs to create my own classes, I tried this article and using org-latex rather than ox. I also tried this different approach. I tried enclosing the above classes with ...
0
votes
0answers
26 views

How can I tell when non-interactive bash process is done executing a command?

I'm trying to write a different shell command line interface where the input line stays at the top. Output of previous commands should stack below: > INPUT LINE LAST OUTPUT (of command 1) ...
0
votes
0answers
5 views

How do I get rtags to work in spacemacs?

On a recent pull of both rtags and spacemacs, but I can't seem to get rtags to work well. There is no keybindings for jumping/searching to/for symbols and the definitions either. I've seen a couple ...
1
vote
1answer
12 views

Improving org-block-begin-line, splitting in several faces

The face org-block-begin-line allows to customize the first line of the following block #+BEGIN_SRC lang :var arg1=1 arg2=2 ... #+END_SRC However, I would like to customize the faces within the line,...
0
votes
0answers
25 views

How can I disable a function when another function is triggered? [on hold]

How can I disable counsel-find-file during dired-do-copy and copy-file.
2
votes
2answers
15 views

Disable tex-mode's auto tex-insert-quote functionaliy

So basically, for reasons unknown we don't use regular LaTeX style quotes at my company, instead just using regular double quotes. However, tex-mode in emacs automatically substitutes the " key for ``'...
0
votes
1answer
12 views

org-publish-project fails because of defective org-links - repair links automatically or ignore them?

I'm trying to "quickly" export my notes ans tasks from org-mode to a html-page with org-publish-projects. I had a working setup some years ago and I'm trying to reactivate it, but doing the export ...
2
votes
3answers
55 views

idiomatic way to lexically scope variables in a cl-loop body

Here is some asynchronous code in a cl-loop: ;;; foo.el --- -*- lexical-binding: t; -*- (let ((my-list '(a b c))) (cl-loop for index below (length my-list) ...
0
votes
0answers
22 views

Emacs shell slow compile

So I've been searching around for this particular problem and apparently I found no solutions. There are posts on reddit about this: https://www.reddit.com/r/emacs/comments/3scsak/...
1
vote
0answers
25 views

Emacs not responding to keyboard input

Sometimes Emacs stops responding to keyboard input. It responds to mouse input though. If I do killall -s SIGUSR2 emacs, the debugger shows this (but remains unresponsive to keyboard): Debugger ...
0
votes
0answers
11 views

Smartparens slurping across fluent call chains in php-mode

I have not been able to find a solution to this frustrating problem. Here is the situation and my questions are at the end: Given code that looks similar to this: $this->hello()->wootFluent()-&...
0
votes
1answer
14 views

dired-do-copy in tramp does not go to local when `\ C-j` is pressed. File path stays in the same directory

I am using dired-do-copy to copy a file from remote using tramp to local. When Copy file to path is promted. I used / C-j to go to local path but the path stays in the same directory , does not go to ...
2
votes
1answer
35 views

Prettify `-lambda`

I have ("lambda" . 955) in my prettify-symbols-alist for Emacs Lisp to transform lambda to λ. I would like to do something similar for -lambda from dash.el. I have tried adding ("-lambda" . (?- (Br . ...
0
votes
1answer
8 views

How to navigate through bookmarked directories in helm-find-files?

I have some bookmarked directories (regular Emacs bookmarks). I'd like helm-find-files to quickly navigate to the files in these directories. I've tried helm-bookmarks but it will only open the ...
0
votes
0answers
19 views

C-x C-f causes python shell to start in python-mode

I normally use C-x C-f to counsel-find-file by every time I try using it in python-mode, it starts up the Python Shell in a buffer. I've tried investigating whether there is a hotkey conflict using "C-...
0
votes
0answers
26 views

emacs ivy always selecting default function

I just started trying out ivy. I took the following example from the ivy tutorial: (defun my-action-1 (x) (message "action-1: %s" x)) (defun my-action-2 (x) (message "action-2: %s" x)) (defun ...
0
votes
0answers
5 views

How to get the file_name of the file being generated by org-publish?

How to get the file_name of the file being generated by org-publish? Specifically, org-publish-project-alist would specify "file_name" something like this: (setq org-publish-project-alist `( ("...
0
votes
0answers
26 views

'Finish to start' todo dependency

org-edna (Extensible Dependencies ’N’ Actions for org-mode tasks) is great! The default blocker (:BLOCKER: property) sets condition(s) for preventing a todo status (org-not-done-keywords) becoming ...
0
votes
0answers
13 views

Shift key does not fully work in Juypter Notebook's terminal

The Shift key sometimes does not seem to work in emacs, when emacs is launched in Jupyter Notebook's terminal (in non-window mode). Other meta keys such as Ctrl and Alt on a PC keyboard work as usual. ...
1
vote
1answer
22 views

How to bind a key in a `generic` mode?

Is there a way to bind a key in a mode defined using define-generic-mode such as xmodmap-generic-mode? Generic does not appear to create keymaps. ELISP> (require 'generic-x) generic-x ELISP> (...
5
votes
3answers
253 views

Is there a way to make the “o” keypress of other-window <C-x><C-o> repeatable?

Question is as stated in the title. Instead of using various packages for switching windows, it might be simpler to make <C-x><C-o> behave like <C-x><C-+>, such that repeated ...
0
votes
0answers
32 views

Agenda hiding/removing buffers from tabbar

I am currently using Aquamacs 3.4, Emacs 25.3.50.1, and Org mode 9.2.5 and I typically have my frame split vertically into 2 windows. Each window carries 2+ different buffers whose names are in the ...
0
votes
0answers
8 views

Control depth level of table of contents with org-mode and beamer

I have the following in my org-mode file that I am exporting to beamer on the basis of this simple template: * Introduction * More ** etc * Still more ** Some a ** Some b ** Some c However, my TOC ...
0
votes
0answers
6 views

Emphasis in org-mode for beamer not translating the `@` correctly

I'm looking at documentation here about a very @important@ point. I understand using @at@ renders strong. However, while my org-mode -> beamer -> PDF otherwise seems to work, @ is rendering as a ...
0
votes
2answers
42 views

Org-mode tasks without many asterisks

How can I introduce hierarchical sections in org-mode without requiring the tasks within those sections to have a large number of asterisks? To context is that I'm looking for a standardized ...
0
votes
0answers
8 views

org-tags-view: display “path” of all headings HOWTO

file.org: * emacs ** programming language :lisp: text how to make org-tags-view for lisp tag display line: file.org: emacs/programning language :lisp: instead of: file.org: ...
0
votes
1answer
10 views

How to efficiently include a repository relative path in the mode-line?

Currently in the mode-line the filename %f, is absolute. I would like to have the path relative to the version-control root, without having to find this every redraw. How could this be cached, ...
1
vote
1answer
19 views

How to include an index in a list generated by mapcar?

This statements generates a list of (list filename buf), How could this be written to include an index as well? eg: (list index filename buf) where the index would be a counter, starting at zero, ...
1
vote
1answer
27 views

Is there a way (a package?) to “redirect” pop-up menus to the minibuffer, ido, or completion buffer; either generic or flyspell-specific

Sometimes I must use Emacs (in X mode) over a network connection (for example, working on a cloud VM). I am pretty comfortable with the interface responsiveness inside a frame, although X is ...
0
votes
1answer
54 views

How to use an Easy PG encrypted custom-file?

So, inspired by this article. I decided to try adding the following to my init.el: (setq custom-file (expand-file-name "secret.el" user-emacs-directory)) (load custom-file) Where the file in ...
1
vote
1answer
35 views

Removed Homebrew now the jpeg and png images don't display

Recently I removed the Homebrew completely on my OS X 10.7.4 (because the only reason I was using it was the OpenSSL package and I installed it from scratch into /usr/localand it worked perfectly so ...
0
votes
0answers
26 views

url-retrieve-synchronously on github doesn't return any response

Running the function (url-retrieve-synchronously "https://api.github.com/users/lawlist/gists") returns an empty buffer. This only happens with github. What could possibly be the cause?
0
votes
0answers
8 views

Getting MacOS Emacs + remote Ubuntu + rtags + company + TRAMP to work?

My development environment works as follows: Working locally on a MacOS laptop with Emacs without a local code repository (or any development tools e.g. clang) Code is remote on an Ubuntu development ...
0
votes
0answers
15 views

Remap Company's select next and select previous keys, with evil-mode?

When company-mode pops up suggestions, I want to use C-n and C-p to select the next or the previous options, instead of M-n and M-p. Having found the general answer on this site, I was happy to try ...
0
votes
1answer
16 views

How to get the number of rows between hlines for orgmode table formula?

In my orgmode table formula, i would like to get the number of rows between hlines (for example: @I..@II). Does anyone know how to do it?
0
votes
1answer
46 views

Trying to install auctex via package-install

I am trying to install auctex via M-x package-install RET auctex. Unfortunately after a brief splash of Contacting host: elpa.gnu.org:443, I end up with the message https://elpa.gnu.org/packages/...
0
votes
0answers
10 views

(comint-magic-space) in Eshell

I like to interact with the history of my bash commands. For instance, !?python would run the last command that contains python. Since the outcome is quite unpredictable, I often expand it before ...
0
votes
0answers
13 views

Org-clocking won't show current instance

I'm at a loss here with a little issue that is by no means critical but still quite annoying for lovers of org-mode. Whenever I clock into a task that has already been clocked previously on the same ...
1
vote
1answer
37 views

Give key binding absolute priority [duplicate]

I'd like to use M-<arrows> to move around windows in Emacs gtk, so I have added (windmove-default-keybindings 'meta) to my init.el. However, this is overridden by other modes such as elpy. Is ...
0
votes
0answers
18 views

Tabs on windows with custom buffers

I am new to Emacs and I am trying to set up a decent workflow for projects I already have. What I want to do is to be able to have tabs of buffers on each window (not frame). What I want ...
0
votes
0answers
27 views

magit - find out who write the current line at point and when

Someone showed me how to do this with "ruby mine" but I don't use ruby mine so hoping emacs / magit can do this. A file in a git repo is opened up in emacs. Point is at line 23, and you want to ...
0
votes
1answer
37 views

Can magit put my commit somewhere up the tree?

I have a rough part of my workflow, wondering if magit is the solution. So when I'm working on a task, I spin off a branch like most people. I end up putting 5 or 6 commits in a branch that's for my ...
0
votes
0answers
7 views

Setting reftex-section-levels as a file-local variable

I'm trying to set reftex-section-levels as a file-local variable on a few files I have, since they use non-standard sectioning commands. If I start emacs and open one such file, such as this ...
0
votes
0answers
27 views

Transient - what does it do? [closed]

What does transient do exactly - in plain English? I read its README and https://emacsair.me/2019/02/14/transient-0.1/ but I didn't understand it.
0
votes
1answer
19 views

How do you change the paper size on pdf export in emacs?

Every time I export using the dispatcher, the pdf that is produced is letter size. My system and printer are A4. How do I change the paper size for pdf (and text) exports in emacs?
0
votes
0answers
14 views

Numbered backups not being created after every save

I would like for a new numbered backup file to be created every time I save a buffer. I.e. if I save a buffer ten times I want ten new backup files created. To that end I have added the code below in ...
0
votes
1answer
34 views

How can I skip 'Scan-error: “Unbalanced parentheses”…'?

I want to write a script in order to correct spaces inside section command in a LaTeX code, that's to say \section{Lorem ipsum dolor sit amet consectetuer adipiscing elit} should be \section{...

15 30 50 per page