All Questions

2
votes
2answers
47 views

Rename file from space to underscore in dired just the filename. Xah function for this also renames all parent directories

I found this function by xah to do this but it also looks at the parent directories. Ideally, this would just look at the filename not including the parent name or parent directories. Something along ...
1
vote
0answers
17 views

Possible to save winner history winner-ring-alist in savehist or desktop-save to save across sessions

I added in the following command to my .emacs but it doesn't seem to work: (add-to-list 'savehist-additional-variables 'winner-ring-alist) Is there a way to get the winner-undo history to save ...
4
votes
1answer
31 views

replacing regular expressions with querying on and functions on match

EDIT: gave more context for my first approach. My goal is to search my notes for strings of the form "4/1/2014" to org-mode timestamps "<2014-04-01 Wed>" (that particular day-of-week may be ...
0
votes
0answers
9 views

Macro changes cursor position when it triggers scrolling

I have text consisting of several similar blocks as follows: aaaa bbbb aaaa #last line visible (A) bbbb #last line visible (B) aaaa bbbb ... The screen is 5 lines high. The cursor is at the very ...
0
votes
0answers
16 views

Increase minubuffer font size for quail mode completion

I am trying to increase the font size of the text overlay displayed in the minibuffer when using quail completion without success so far. Does anyone have any idea how to achieve this? EDIT: I was ...
3
votes
1answer
314 views

Remove unsaved text in Emacs

Is there a way to remove unsaved text and get back the latest saved state of a file in Emacs without using undo? Like this: | a - write some text to save | b - save the file | c - add some text to ...
0
votes
1answer
60 views

How can I get files and links to open correctly in emacs?

This used to work, but since a recent update, it hasn't. I'm using spacemacs, with this configuration. Links and files don't open as usual. If I open ansi-term, and type xdg-open test.txt, then I see: ...
1
vote
2answers
52 views

How to customize DONE headlines per-file in org-mode?

I would like to customize the headline and keyword inside of an org file. In this question is shown how to change the faces of each keyword, but not the headlines. For the moment, I haven't achieve ...
1
vote
1answer
63 views

Company completion in Elixir with lsp-mode/eglot not working as expected

I’ve got elixir-mode and lsp-mode (before I was using eglot but the same problem persisted) configured in my emacs.d and it mostly works. One thing I can’t figure out though is how to work with the ...
0
votes
0answers
15 views

Alarmbell on saving .py file if linting errors using flake8

I'd like to configure Emacs to play an audible noise when saving my .py files but only if there is a linting error present. I currently have flycheck linting done on the fly and autopep8 settings ...
0
votes
1answer
14 views

helm-mu on macOS throws Invalid read syntax: (")

Hej guys, I get an error when searching through my mails with helm-mu. Messages gives Invalid face reference: helm-grep-finish [96 times] error in process filter: helm-mu-candidate-parser: End of ...
4
votes
2answers
74 views

How to play back an edit session in emacs?

The book Clean code says emacs can play back an edit session (page 13): You could work for an hour and then play back your whole edit session like a high-speed movie. When I did this, the results ...
0
votes
0answers
7 views

Set Export scope to Subtree on In-Buffer level

I have a large org file and I often export only subtrees from it. It's useful for me to redefine Export scope to Subtree when calling Export dispatcher inside this buffer. How could I do this?
0
votes
0answers
12 views

How to combine counsel and template

In the counsel package, M-x counsel-find-file doesn't allow the template package to auto-insert a template. My guess is that counsel-find-file is replacing find-file, which is what template is ...
0
votes
0answers
10 views

gnus pulls all articles when I'm asking for un-read only

I have Gnus set up in my Emacs-46.1, it connects over IMAP to my gmail.com account every 5 minutes. Overall it works fine, emails which I have read are no longer displayed in INBOX group. However I ...
0
votes
1answer
17 views

How can I consider an unfinished clock in clock table

I want to use org clocks to clock my time at work, I finish after 7:30 of clocked time every day. I want to know what would be my total clocked time if I stopped the time right now, but the last ...
0
votes
1answer
37 views

Direct emacs that open file from the pwd from shell buffer

I use shell mode, often. I use the c-xc-f. Most of the time, the start directory for looking for file, correspond to the PWD of the emacs shell buffer. Can i set that it is always the case/or reset it?...
0
votes
1answer
75 views

Org mode bullets

I am using org-bullets package but the rendering of unicode bullets doesn't seem correct to me. I tried changing the to different fonts without any success. Also I can't find anything related to ...
2
votes
0answers
27 views

Encrypting Org export

I have a GPG encrypted Org file (title.org.gpg) that I interact with transparently using epa. I would like to export this to a GPG encrypted PDF. Currently I do this by using the usual LaTeX export (C-...
1
vote
2answers
32 views

German input method: missing ' (single quote)

I am typing with a German ISO keyboard that I've set to US English in X: setxkbmap -layout us -model pc102 For entering German characters in Emacs, I do: (set-input-method 'german) Some special ...
2
votes
1answer
70 views

How to set backslash character “\” to be a word constituent in LaTeX-mode syntax tables

In LaTeX-mode (AUCTeX) buffers, the backslash "\" is treated as an escape character. I'd like it to be treated as word constituent (syntax class "w") instead, but only in LaTeX-mode buffers. The main ...
0
votes
0answers
37 views

Whats the recommended way to install yasnippet for an emacs prelude user?

Is doing mkdir ~/.emacs.d/personal/snippets/ the correct way and putting snippets there? I've been reading https://github.com/bbatsov/prelude/issues/98 What I did: ;; personal.el (prelude-require-...
0
votes
1answer
33 views

Setting variable for org-mode html export?

I am trying to set org-html-link-org-files-as-html to nil for a single org-file (but have the value equal t for all other org files). This is a variable defined in ox-html. (defcustom org-html-link-...
0
votes
1answer
41 views

How can i add same value to every item in list, turning it into alist?

I tried to use this code, but it returns (k k k k k) (mapcar (lambda (x) 'cons x '(k)) '(a b c d e)) What am i doing wrong here? Why doesn't cons work?
1
vote
1answer
29 views

How to check if a major mode derives from another?

Is it possible to check if a mode is derived from another mode? eg: (member major-mode '(c-mode c++-mode glsl-mode)) Could be replace with something like this: (does-mode-derive-from major-mode cc-...
0
votes
1answer
31 views

How to prevent “the function ‘->’ is not known to be defined.” warning

How do I prevent flycheck from triggering a warning for the following code: (defun file-path-last-segment () "Get last segment of file path for use in snippets." (-> default-directory (...
0
votes
1answer
21 views

Can't install packages without root permission

I only can install packages as a root user (or with sudo) If I tying to install package, or just update the package contents, I get this error: Debugger entered--Lisp error: (error "/80 Name or ...
1
vote
1answer
33 views

org-mode table row operations

Is it possible to do row operations of the following form in org-mode? | x1 | x2 | x3 | x4 | z1 | z2 | b | |-----+-----+-----+----+----+----+---| | 2 | 1 | -7 | -1 | 1 | 0 | 0 | | -39 | -7 ...
2
votes
1answer
49 views

phpunit in org-mode src block

I'm using phpunit package https://github.com/nlamirault/phpunit.el and it works great with php files. But I have a simple php blog about refactoring ex: http://phprefactor.com/refactorings/decompose-...
0
votes
1answer
34 views

How to use `backspace` to navigate to the parent folder in Spacemacs?

When I use C-f to find a file in Spacemacs, how can I use <backspace> to navigate to the parent folder?
0
votes
2answers
57 views

Why doesn't set-background-color work in my init file?

I have an init file for Emacs located at /home/username/.emacs.d/init.el and it has the command (set-background-color "honeydew"). However, when I open Emacs the color has obviously not changed from ...
0
votes
1answer
36 views

Definitive answer to org-mode export HTML versus LaTeX

I keep being stymied by the apparent incompatibility of HTML and LaTeX export. Here's what I have in my .org file header: #+LATEX_CLASS: article #+LATEX_CLASS_OPTIONS: [american] #+LATEX_HEADER: \...
1
vote
1answer
36 views

Org-mode problem exporting to LaTeX

I'm getting weird results on exporting Org files to LaTeX. The following Org code produces blank pages and the resulting PDF terminates before the fifth heading and subheadings are printed: * First ...
4
votes
0answers
806 views

byte-compile much slower in X (vs. -nw)

Setup Windows 10 host with X server (VcXsrv) Linux guest (Arch) in virtual machine (VMware) Benchmark (defmacro measure-time (&rest body) "Measure the time it takes to evaluate BODY." `(let ...
0
votes
0answers
17 views

Org mode - Copy cells from a remote org-table with shifted columns

I want to copy the values of a shifted range of cells from a remote table. Example: #+NAME: TBL1 | 1 | 2 | 3 | 4 | | | | | | #+NAME: TBL2 | | 5 | 6 | 7 | 8 | | | | | | | The ...
1
vote
2answers
50 views

What does the prompt mean for `has changed since visited or saved. Save anyway?`

When I try to save a buffer back to a file: install-packages.sh has changed since visited or saved. Save anyway? (yes or no) I don't know why it happens, but I also see #install-packages.sh# ...
1
vote
3answers
46 views

How can I search a list of files for content that matches a regexp?

I am trying to write an interactive command that will search a set of files for a regexp. The files are selected programmatically, for example, as a list of files that match some date criteria, or ...
0
votes
0answers
40 views

Mark vacation days

I'm looking for a way to mark vacation days in my agenda view. This would probably be triggered best by category (so when a header is marked as a vacation). I found this post which is getting quite ...
0
votes
0answers
16 views

Error when opening encrypted file

I cannot open my beancount encrypted file; executing M-x toggle-debug-on-error I get the following backtrace: Debugger entered--Lisp error: (wrong-type-argument arrayp nil) file-truename(nil) ...
2
votes
1answer
34 views

CIDER, how to fix “No cljs REPLs in current session” error

I'm editing a ClojureScript file, and I have a working ClojureScript REPL in another buffer. But when I try to evaluate a form in my file ui.cljs, with C-c C-c, I get a beep an a message in the mini-...
0
votes
2answers
41 views

How to run a command in Emacs (rvm-use) against all current and future buffers?

I am very new to Emacs. In my case what I'm actually using is Spacemacs. I have few versions of Ruby installed in my system and I use RVM for switching between them. I'm trying to change current ...
1
vote
1answer
54 views

Need emacs lisp function to execute command in *shell* buffer

How to write a function (it would go into .emacs) that sends some command to shell buffer (and initializes shell if needed)? Something like: (defun () (interactive) (shell) (sh-send-text "ssh ...
0
votes
1answer
12 views

org src block php formatting adding commas to phpDoc

In the editing mode (C-c ') I formatted php code using TAB button. But in org mode src block it adds 2 comma to phpDoc.
0
votes
0answers
15 views

erc-tls on Emacs/Windows: connection fails

Using erc-tls, I cannot connect to port 6697 on bnc.irccloud.com. Credentials are correct. Furthermore I can connect to that server with: Emacs running on Linux (to be specific, Termux in Android) ...
0
votes
1answer
17 views

how to enable pdflatex --shell-escape switch in org-export dispatcher interface

I would like to add a switch when invoking the org-export dispatcher interface for latex-pdf exports. I'm trying to render an SVG image but the *Org PDF LaTeX Output* buffer errors out because of a ...
0
votes
0answers
27 views

tramp gcloud compute ssh not working

I wanted to be able to ssh into my google cloud instances with spacemacs. I found: https://github.com/dustinfreeman/dustinfreeman.emacs.d/blob/master/init.el#L50 which is based off of: https://...
0
votes
1answer
11 views

Export to HTML presentation using reveal

I'm completely new to Emacs (just saw a presentation made with that using export to HTML presentation via reveal). I'm not able to find a way how to setup Emacs to show the option Export to HTML ...
0
votes
1answer
13 views

Cannot export org file into html. Error: make-htmlize-fstruct: Symbol’s function definition is void: record

For some reason I cannot export certain org-mode files to html. Org-files without headers work fine. However, if I have a file with #+TITLE: This is the title of my website #+HTML_HEAD: <link rel="...
0
votes
1answer
35 views

org-mode export to html php code

I'm want to export php code snippets to html in org-mode. But as you see signs : '$' and '->' are highlighted by black color which looks terrible. Is it a some kind of error? Btw. is there any ...
1
vote
1answer
46 views

How to display a character reversed

I know about compose-region and have used it for other purposes, but am trying to figure out how to display a character reversed. like transforming c to ↄ. Is this possible?

15 30 50 per page