All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
18 views

Org mode attachments: how to change the default directory for added attachment folders?

I am using org mode and its attachment functionality, letting me make a directory attached to a task (C-cC-as). The default folder is not the one I would like it to be. How can I change the default ...
1
vote
1answer
24 views

Can “advice-add … :filter-args” detect if the advised function was called interactively?

Using advice-add from nadvice.el, I am trying to add a :filter-args advice to an interactive function. Is it somehow possible for it to detect, whether the advised function has been called ...
1
vote
2answers
28 views

How to compare an item against others, that's compatible with string-equal?

When comparing the last-command against multiple possible strings, it doesn't seem possible to use the member function. Is there a way to simplify this using something like member? (when (or (...
0
votes
1answer
43 views

cursor color depending on insert or overwrite mode

how can I change the cursor color depending on insert or overwrite mode? I looked at this page https://www.emacswiki.org/emacs/ChangingCursorDynamically and put as recommended 3 lines in the Emacs ...
0
votes
1answer
67 views

org-mode table/matrix in latex export

I have an issue when exporting a table using *matrix environments. The align string appears in the cell content, whatever it is specified or not #+CAPTION: my matrix #+ATTR_LATEX: :mode displaymath :...
5
votes
1answer
141 views

(progn (scroll-up 1) (goto-char 0)) is different from (scroll-up 1) then (goto-char 0)

In any buffer, try to eval-expression the expression (scroll-up 1) and then eval (goto-char 0). The window scrolls up, then point is moved to the beginning of the buffer. Now, try eval-ing (progn (...
0
votes
1answer
27 views

Using evil and org-mode, as my file size grows, there is increasing delay in any command that changes text

There is only delay when changing text: navigation all works instantly, as normal. The delay has gotten to about one full second now, it's getting pretty bad. The file is around 15,000 lines long, ...
2
votes
1answer
831 views

How to customize org-agenda-* faces in .emacs file?

I am trying to customize org-agenda-* faces such as org-agenda-date, org-agenda-date-today, and org-agenda-date-weekend in my .emacs file. Normally, I install the use-package package to lazily load ...
0
votes
0answers
12 views

c-electric-brace and smartparens pairs

Within c-mode it is possible to configure a style and with c-hanging-braces-alist it is possible to relocate braces like { and } to separate lines, inserting whitespace and so on. Th function which ...
8
votes
1answer
613 views

Issue with nnmaildir in gnus

I've been trying to get nnmaildir to work along with mbsync (which syncs IMAP and Maildir mailboxes) and I just cannot get it to work with gnus. With the following select method: (nnmaildir "calgary"...
3
votes
1answer
255 views

ipython in emacs: Figure windows “not responding” on Windows 7

I am trying to get a good setup to do scientific python on windows 7. To be complete, I am using Anaconda for Python package management, and emacs 25.2 (the native windows build from GNU, not the ...
0
votes
2answers
652 views

Org-mode: How to fix table width to page width for dynamically generated tables?

I am using dynamically generated table to create a tabulated to do list with various parameters using: #+COLUMNS: %ITEM %SCHEDULED %DEADLINE for more info see: Org-Agenda export to dynamic Org-Table ...
2
votes
1answer
44 views

Ignore both uppercase and lowercase versions of the extensions listed in completion-ignored-extensions

How can I get Emacs to ignore, say, both .pdf and .PDF files without listing both ".pdf" and ".PDF" in completion-ignored-extensions?
0
votes
1answer
12 views

How do I control how the contents of an element/object are combined when defining an org-mode export backend?

I'm working on implementing a custom Org mode backend and trying to understand how the exported contents of an element/object are combined together by the export system. It seems like everything is ...
0
votes
0answers
15 views

Force org-babel-load-file to execute every time emacs is loaded

I have this code in the init.el file: (org-babel-load-file (expand-file-name "myinit.org" user-emacs-directory)) Which used to generate a myinit.el file every time I start emacs. I would ...
0
votes
1answer
120 views

Showing Section Name in Each Frame (Org-Mode Beamer)

Roughly, I have: #+options: H:2 * Introduction ** Some definition + list item1 + list item2 This shows Some definition as its own beamer frame (with + list item1..). Question: How can I ...
1
vote
1answer
43 views

Ivy: sort candidates by most recently used

I'm coming from Helm to Ivy just to try it out, and one thing I miss greatly from Helm is how the default candidate when hitting M-x is whatever the last command was. Is there some way to sort Ivy's ...
0
votes
0answers
17 views

Org-mode source blocks are not fontified same as the corresponding language

i am using Zerodark theme and in my org files I noticed that source blocks (emacs-lisp) are not fontified same as when opening an actual lisp file. I already have this setting: (setq org-src-...
0
votes
1answer
33 views

font-lock keywords and syntax-table mutually interfering

I would like to define something that font-locks a bit like a new sort of string-literal/comment. I might write: (font-lock-add-keywords 'emacs-lisp-mode (list '("<<.*>>" 0 'my-custom-...
1
vote
1answer
78 views

How do I display an image full width?

I am using GNU Emacs to display the cover of the album mpd is currently playing, inserting it into a *jukebox* buffer with this code: (put-image (create-image albumartname 'imagemagick nil :width ...
0
votes
1answer
127 views

Creating table of content with the package titletoc in Org Mode for LaTex export produces strange lines of text

I use the LaTeX package titletoc to produce table of contents in some chapters or sections for Org-Mode LaTeX / PDF export with #+TOC: headlines 1 local But in the PDF file there is for example the ...
2
votes
1answer
97 views

extra frame in (visible-frame-list) when started in daemon mode, is causing problems

When I start emacs (emacs), and then eval (visible-frame-list), I get a list with one frame, the one that is visable. However if I start emacs as a daemon (emacs --daemon), and then eval (visible-...
1
vote
1answer
16 views

Getting call stack during call of a specific function

An automatic save is triggered (from some hook in some of my extensions) directly after a buffer is modified and I can't find the reason for it. The mode auto-save-mode is not enabled in the buffer ...
17
votes
2answers
541 views

Collapsing undo history

I'm working on an Emacs mode that lets you control Emacs with speech recognition. One of the problems I've ran into is that the way Emacs handles undo doesn't match how you would expect it to work ...
2
votes
1answer
124 views

Helm/Projectile outside a project

I use the packages Helm and helm-projectile for navigating in Emacs. I ran into problems, when I use projectile-helm inside Helm, and I'm able to reproduce this with a empty Emacs init file. The ...
30
votes
3answers
7k views

Problems with keybindings when using terminal

I have the following line in init.el: (global-set-key [(control \;)] 'comment-region) It works very well in GUI window, but if emacs is invoked with the -nw option then C-; doesn't comment region, ...
1
vote
1answer
11 views

Auto fill of # style comments in Emacs python-mode not working

My expectation is that, like for comments in other language modes besides python, I could write a long comment, say 150 chars, and it would automatically fill, i.e., newline and indent with comment ...
1
vote
2answers
63 views

Python Documentation String Indent In Auto-Fill Mode (Emacs 26.2)

I've noticed a peculiar behavior when using auto-fill-mode editing Python code. For example if I start typing the following (fill-column is set to 79): def some_function(keyword_argument0, ...
1
vote
1answer
385 views

M-x shell from MSYS2: cannot set terminal process group

I'm using MSYS2-x86_64, and whenever I do M-x shell I see the following: bash: cannot set terminal process group (-1): Inappropriate ioctl for device bash: no job control in this shell ]0;~/.emacs.d ...
1
vote
0answers
24 views

How can I stop Emacs from grabbing focus at startup?

I typically start GUI Emacs on macOS, https://bitbucket.org/mituharu/emacs-mac/overview, installed via Nix package manager, as part of a larger startup script on the terminal (iterm). While Emacs is ...
2
votes
1answer
290 views

How to make Emacs “forget” code evaluated in scratch buffer?

I have a function named my-func in my init.el. I copy this function to the scratch buffer, make some changes to it and evaluate it with C - j. I then delete the code in the scratch buffer and then ...
0
votes
0answers
11 views

Python indent closing parentheses for multi-line function

I've discovered some reformatting with Black or Yapf: def responses(self, foo=SuperLongClassnameBar.FOOBAR ) -> List['Foobar']: Using emacs and elpy, it won't indent the closing ...
0
votes
1answer
13 views

M-x compile fortran

I set up M-x compile to automatically run appropriate commands depend on on the file types. For example, for C++ (add-hook 'c++-mode-hook (lambda () (set (make-local-variable '...
2
votes
2answers
301 views

How to open multiple files in multiple windows at startup

In earlier versions of emacs one could use emacs -nw file1 file2 file3 and see three files (and no buffer list) at startup. For recent versions this no longer works. Is it possible to add some code to ...
2
votes
1answer
81 views

How can I make terms searched with `*` or `#` populate the search history?

In my attempt to have * and # work in Spacemacs as they do in Vim, I've followed the solution posted at this question. Those keys now work, but there's one hurdle more to overcome: the searched term ...
0
votes
2answers
100 views

How to use phpactor.el in GNU Emacs 25.2.2

I am a Vim user for about a year now and I am curious to give Emacs a try. I discover Emacs for some days now and I would like to improve my PHP-editing experience. In Vim there is a plugin for ...
0
votes
1answer
19 views

always prompt for default directory when opening interactive subshell

When I invoke C-u M-x shell while visiting a local file or scratch buffer, emacs does not prompt me to enter the default directory for the shell. But if I'm visiting a remote file or directory ...
1
vote
1answer
36 views

Reference cells of other tables in org-mode table as plain text

I intent to copy the value of a cell and put the exact copy to the target cell and be able to update the value on referenced cell to be updated on the targeted one. Calling remote to a cell evaluate ...
0
votes
1answer
17 views

Do not show created timestamps in agenda

I'm using a package that automatically adds a CREATED property with a current time stamp to every item I create. I would like these timestamps not to appear in my agenda. To demonstrate, here is a ...
1
vote
1answer
109 views

How to mount/unmount devices?

I'm interested in mount/umount usb and other devices directly from emacs. In many file mangers (like nautilus) the devices are automatically discovered and indicated with an icon, it's possible to do ...
0
votes
0answers
40 views

Emacs .el file won't load on startup

I'm trying multiple methods to load an emacs .el file on startup. ('load-file "~/.emacs.d/extra/outline-presentation-mode.el") Also: ('load "~/.emacs.d/extra/outline-presentation-mode.el") Also: ...
0
votes
0answers
15 views

Default directory for flycheck in .dir-locals.el

I am using flycheck with some python linters (python-flake8 and python-mypy) and I would like to modify the directory from which these linters are run by flycheck. My directory structure is as ...
2
votes
1answer
232 views

Cannot cite anything [closed]

I've seen this question: Loading bibtex file in org-mode file as well as this one: https://tex.stackexchange.com/questions/114864/how-to-get-bibtex-to-work-with-org-mode-latex-export I've tried ...
0
votes
0answers
11 views

Flycheck: Suspicious state from syntax checker go-vet

When I import native package into native test file. package tests import ( ... "github.com/myGithubProjectRootPath/internal/platform/web" ) ... It report a import package path not allowed ...
0
votes
1answer
36 views

Wordpress blogging with org2blog, “Error during request: 400”

I used to use org2blog to post my wordpress posts. However, a few months ago, it suddenly stopped to work: when I tried to log in with org2blog/wp-login I had an "Error during request: 400" ...
4
votes
1answer
175 views

Org Mode: Difference in results when evaluating code block and evaluating called code block

I am a beginner who wants to evaluate a Call to a code block in an org-file and get the same results as when I evaluate the actual code block. Like so: #+NAME: Myblock #+BEGIN_SRC emacs-lisp :results ...
0
votes
1answer
88 views

opening brace alignment/indentation problem in LaTeX mode

I have an alignment/indentation problem in LaTeX mode. Every time I begin a line with an opening brace and I hit <TAB> or run an indentation command on the region, the brace becomes aligned with ...
1
vote
1answer
111 views

Run custom bash functions with M-!

I have a few custom bash functions that are defined is some file and are made available to me in regular terminals via the line . "/path/Custom Bash Functions.sh" in my ~/.bashrc. However, Emacs ...
0
votes
0answers
13 views

Unable to <TAB> or have any auto-indentation in php-mode

as per the title, I'm unable to or have any auto-indentation in php-mode. With a simple .php file, I get this: <?php phpinfo(); ?> Pressing TAB anywhere within the document does nothing at ...
0
votes
0answers
4 views

Is there a way to print hardcopy of a region with inline images from LaTeX previews?

The specific reason to ask this is the following situation: I use preview mode in latex. I often want to print a paragraph (with the inline images generated, but I don't care about the text font). I ...

15 30 50 per page