All Questions

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

comment-kill for entire region

Is there a similar command to comment-kill that kills all comments in a given region and saves them to the kill ring?
1
vote
1answer
34 views

View file diffs in merge commits

When I open the commit view for a regular commit in magit, I can see the diff for each file. When I open a merge commit, I can only see a summary of the number of lines that were changed. Is there a ...
0
votes
0answers
10 views

What is the correct syntax for the exclude and include options in org-publish?

Does the :exclude and :include option of org-publish-project-alist allow multiple patterns? Do they involve multiple or regexes or does each pattern require its own separate :exclude or :include line?...
0
votes
3answers
434 views

multi-term terminal messages configurations not working as expected

I'm trying to follow this article and configure my multi-term to work with remote files seamlessly. Edit: That article seems to be down currently. Try the cached version here. But it's not working as ...
0
votes
0answers
26 views

jedi with ein does not work

While Jedi works in python mode, it does not in ein (jupyter-notebook). If I run jedi:setup manually, both of jedi and auto-complete get listed among minor modes. I use emacs 25.1.1 on Debian. I use ...
1
vote
1answer
183 views

how to deal with mixed line endings in diff-mode

Say I have several files with different line endings (i.e. some have LF and others have CR+LF). If I somehow run diff on them and load the diff into Emacs (e.g. with C-x v D, or just dumping the diff ...
1
vote
1answer
182 views

Error running timer: (error “Candidates function `helm-git-grep-process' should run a process”)

I'm getting this error when trying to run helm-git-grep. As soon as I start typing the first character of the pattern, I get this: Error running timer: (error "Candidates function `helm-git-grep-...
0
votes
1answer
100 views

tramp-mode popping up while editing c/c++ files

recently, some strange behaviour popped up when editing c/c++ files in emacs: Whenever I want to write a comment, the first / I enter will open a buffer of type *tramp/spc C* with error message ssh:...
3
votes
1answer
158 views

Dired+. Autorefresh after copy files

Windows 10, Emacs 25.1, Dired+. I copy file from one folder to another. Here screens: After copy I get the next result: As you can see the bottom buffer is not refresh. So I need to go to bottom ...
0
votes
1answer
65 views

Running lsp-mode with Python using the pyls from the virtualenv of my project

I wish to run LSP using the pyls from the virtualenv of my project. I don't have pyls installed globally (only in the local virtualenv). I found this snippet online: (lsp-define-stdio-client lsp-...
3
votes
1answer
139 views

Process unread-command-events and redisplay

(defun pretend (keys) (dolist (e (reverse (listify-key-sequence (kbd keys)))) (push e unread-command-events) ;; (mystery-function) (redisplay t) (sleep-for 0.1))) (pretend "M-x my-...
2
votes
2answers
36 views

org-mode export to LaTeX: Wrapping a section in an environment

What's a good way to wrap every section in org-mode inside a LaTeX environment when exporting from org to LaTeX? For example, say, I want to wrap each section in a minipage so that the width is ...
1
vote
2answers
274 views

org-mode-agenda is taking too much screen estate

Is it possible to change the size of org-mode-agenda on opening so that when opening the agenda, it doesn't open so large (saving me having to resize it)?
0
votes
1answer
19 views

On one specific machine, after some time, new emacsclients can no longer connect to running daemon/server

A strange problem. I run Emacs across a number of machines, with more-or-less a shared configuration. However, on one specific machine, after some time I am no longer able to launch new emacsclient ...
0
votes
0answers
252 views

Cannot set default theme. Dark theme even if loaded without .emacs and without .emacs.d

When I load emacs without any configuration I see a dark theme: There is no way for me to get back to the default theme. I tried the following: M-x disable-theme: no theme is enabled M-x ...
0
votes
0answers
5 views

Insert query into SQL buffer after “sql-send-region” call?

I would like to insert the query in the SQL buffer before the result after a call to sql-send-region. Is there an easy way to achieve this?
1
vote
2answers
93 views

Problem with giving inputs to a function programmatically

Some programs take user inputs, for example by calling the interactive function `sunrise-sunset', two arguments are taken from the user. Assume that the inputs are 0.0098 and 51.4934 (these are ...
0
votes
2answers
174 views

how to define an evil-operator to move forward/backward a text-object?

I am trying to define a function that moves to the begin/end of current text-object. First - I define an operator: (evil-define-operator evil-forward-text-object (beg end type) "move to end of ...
2
votes
1answer
264 views

How to clang-format the current buffer on save?

Whats the best way to clang-format a C/C++/GLSL a buffer on save, that does nothing in the case there is no clang-format file found for a project?
1
vote
1answer
24 views

How can I configure projectile to use my `grep-find-command`?

I have a customized grep-find-command. (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should ...
0
votes
1answer
21 views

Unable to run nov-mode on Windows

disclaimer: I'm still relatively new to Emacs. When I open an Epub on MS Windows, Emacs opens it using Zip-Archive mode and displays its content (which is normal afaik). However, when I start nov-...
4
votes
1answer
64 views

Select a word in a PDF by double-clicking on it (with pdf-tools)

I use pdf-tools in Emacs to view PDF documents. I would like to be able to select words (mark their region and then copy them to the kill-ring) in the PDF by double-clicking on them. Is there a ...
1
vote
1answer
47 views

On Linux/Mac, how to start single instance?

I just want single instance. I just use a simple .emacs for config, which has (use-package server :ensure t :init (server-mode 1) :config (unless (server-running-p) (server-start))) It ...
0
votes
2answers
29 views

Looking for hex values of the default colorscheme

I don't know if it's the default colorscheme in every version, but the version I'm using, Emacs-26.3 downloaded from GNU ftp mirror, has this colorscheme by default. I don't know how to get the values ...
4
votes
1answer
80 views

Importing table of contents from another org file?

Specific Use Case: I have two files, index.org and blog.org. I would like to include the table of contents of blog.org in index.org. The "obvious solution" to me is to use org-babel to inject html ...
5
votes
1answer
358 views

Upload large email attachments to owncloud in mu4e

When composing/sending messages, I would like to automatically upload large attachments to my owncloud server, similar to what the Thunderbird AddOn https://addons.mozilla.org/de/thunderbird/addon/...
0
votes
1answer
307 views

Help with auto-complete in Windows/MinGW64

I‘ve download the “LLVM source code (.sig)” and “Clang source code (.sig)” and build Clang on Windows/MinGW. After that, I’ve install emacs (25.1) and the following three packages from melpa: irony ...
3
votes
2answers
274 views

Calling emacsclient from ansi-term makes emacsclient hang, how do I get around this?

Sometimes I use ansi-term in emacsclient instead of directly using my shell. When I do this, it is not an infrequent occurrence that I forget where I am and call emacsclient someFile, which freezes ...
3
votes
1answer
561 views

Using `emacsclient` as `git config core.editor` and invoking `git commit` as `shell-command` in Emacs?

I am trying to use Emacs 25.1.1 (graphical version, Windows 10) as both the primary editor and the editor for git operations. In my workflow, I invoke git through M-x shell-command. I tried the ...
1
vote
0answers
18 views

sh-mode: Correctly indent and highlight inside bash's subshell substitution $()?

I noticed that bash will correctly apply syntax highlighting inside the subshell substitution in VALUE="Hello $(echo World)." But when creating a more complicated value, e.g. VALUE="Hello $( ...
0
votes
2answers
114 views

auto complete “on fly” and select fast any command

windows 10, emacs 26.1, M-x occur And if want to execute, e.g. command "occur-mode" I need to Press - Press TAB Input mode OK, it's work. But it not very conveniently. Is it possible to run ...
2
votes
1answer
474 views

Migrate php-mode configuration to web-mode

I currently have my php-mode configuration like so: (require 'php-mode) (add-hook 'php-mode-hook (lambda () (require 'ac-php-company) (company-mode t) ...
2
votes
1answer
355 views

edit a file on remote server using an existing session(by clone it)

I am able to clone a session after configure the configure file under .ssh cat .ssh/config host * ControlMaster auto ControlPath ~/.ssh/master-%r@%h:%p ServerAliveInterval 60 After I connect to the ...
0
votes
1answer
220 views

Caption and figure reference to .docx (org-export)

Captions and figure references by label are lost when converting .odt to .docx with Open Office. Captions get hidden under the image and truncated by a box. Numeric references are replaced by “...
0
votes
0answers
14 views

Record a keyboard macro in Evil Mode to a register with another keyboard macro inside it

In vim, one can type qw to start recording a macro to register w, then record the macro, then finish recording to w by pressing q again. It is then possible to record another macro by typing qe, ...
3
votes
1answer
423 views

How can I get :LOGBOOK: into Column View?

The items in my org-mode file will have a number of properties relating to data points that I need to capture. In conjunction with this, I'd like to continue using C-c C-z to log notes tracking ...
2
votes
1answer
2k views

Autocomplete not working

Elpy Configuration Virtualenv........: None RPC Python........: 2.7.10 (/usr/bin/python) Interactive Python: ipython (not found) Emacs.............: 25.2.1 Elpy..............: 1.16.0 Jedi...........
1
vote
3answers
987 views

Making pdf-tools work after successful compiling on mac os x

After installing the required dependencies with homebrew, I was able to compile pdf-tools . But I cannot make it work (I cannot see the pdf on emacs after compiling) I would like to know if somebody ...
1
vote
1answer
151 views

Using org-mode for writing. Would like text in quotes to be highlighted and also character names

I'm using org-mode to write a novel and I would like to have any text between "quotes" to be a different color, just to be able to easily see when a character is talking. Also, if I could have a ...
1
vote
1answer
91 views

Repeat tasks - mark done in a datetree

In my org file, I have the following lines: #+STARTUP: logdone logrepeat logreschedule logredeadline logrefile logdrawer #+ARCHIVE: ::datetree/ When I mark a repeat task done, I want to: Continue ...
1
vote
1answer
38 views

Syncronize on save

Is there any extension or easy way to configure a feature like the Visual Code Studio's extension SSFTP? The ideal behaviour should be like the following one, by using ftp or sftp: Allow a manual ...
0
votes
0answers
25 views

Is there a pexpect like automation for serial-term or term-mode

Is there something similar to pexpect that can be used to automate a tty connection running inside emacs, i.e. in term-mode or on top of serial-term ? I'd like to automate some repetitive tasks like ...
0
votes
2answers
183 views

Show Link Tooltip mouse over with keystroke

When I use mouse-over on an Link (thanks to Tobias) it shows an Image and text. When I used display-local-help the image disappeared (perhaps due to lack of space in the message area). I want to ...
6
votes
2answers
915 views

Why does Emacs indent my Lisp LOOP construct weirdly?

I'm using Emacs and SLIME to edit Lisp code. By default, Emacs indents my Lisp LOOP constructs like this: (loop for x across dna1 for y across dna2 count (not (eql x y))) But I expect it to ...
1
vote
1answer
9 views

visual-line-mode-hook not runnng on mode exit

I would like to have whitespace-newline-mode enabled every time visual-line-mode is enabled, and disabled correspondingly. The documentation on "visual-line-mode-hook" says "Hook run after entering ...
1
vote
1answer
120 views

Python-Repl issues with TRAMP Mode [windows->Linux]

I have an issue when using python-mode remotely through tramp. I'm trying to use the repl and pass a test function using C-c C-c, however this seems to create a local file at my own computer or ...
1
vote
1answer
40 views

Configure echo time for input of key-sequence prefix keys

I am writing latex code with AUCTEX. I very often highlight text in bold or italics. For instance, AUCTEX comes with the command C-c C-f C-e, wich can be used to emphasize text in an active marked ...
2
votes
1answer
32 views

How to redisplay dired buffer after changing listing-switches

This sample code doesn't work: (defun toggle-hidden-in-dired () (interactive) (setq dired-listing-switches (if (equal dired-listing-switches "-l --group-directories-first") "-...
3
votes
2answers
601 views

How can I export to LaTeX every time I save an Org mode buffer?

I'm trying to set up a buffer-local behavior so that optionally, only after I execute the babel section, Org exports to LaTeX asynchronously after each save. I tried the following: (defun kdm/org-...
0
votes
1answer
486 views

How to restore window layout on `org-agenda-switch-to`?

Pressing q in an agenda view restores the window layout if org-agenda-restore-windows-after-quit is non-nil. Is there a way to do the same on RET (org-agenda-switch-to)?

15 30 50 per page