Most Popular

1500 questions
11
votes
3 answers

How does Emacs manage to start instantaneously with many el-files?

As every Emacs'er will know, I'm currently suffering from my extensive dot-Emacs configuration. All my packages are within the containers of use-package, and I bytecompiled all of my .el-files. Even with that, Emacs starts in 6.4 seconds, and then…
ReneFroger
  • 3,855
  • 22
  • 63
11
votes
2 answers

How to copy minibuffer contents?

To post this question and this question, I had to copy the contents of minibuffer. I tried to copy from minibuffer but it didn't worked. I came across this discussion and checked *Messages* buffer also. But minibuffer contents won't be there…
Chillar Anand
  • 4,042
  • 1
  • 23
  • 52
11
votes
2 answers

emacsclient to access remote emacs server

I'm trying to open an emacsclient session from a remote host. I walked through the following steps on the tramp website How can I use TRAMP to connect to a remote Emacs session?. I'll walk you through the step on the remote host put in .emacs…
DJJ
  • 732
  • 5
  • 19
11
votes
1 answer

Javascript mode compatible with es6

Does anyone know of a javascript editing mode that supports the es6 syntax additions (arrow functions, extends, imports, generators, etc.)? I've done some quick searching but it looks like so far everyone just uses js2-mode and ignores the syntax…
lmjohns3
  • 253
  • 4
  • 11
11
votes
2 answers

How to determine the package version to require in your package?

I have a couple packages now, and in the PackageRequires section I would like to put all the packages I require in it, put it seems like it requires the name and version. Where do you determine the version number? For example I have (cl-lib…
user78810
  • 111
  • 2
11
votes
1 answer

Color declared variables

I'm looking for a simple way to make emacs remember of declared variable in a single function in C/C++. By "simple", I mean without any external package, just with some elisp lines in configuration files. My default Emacs configuration colors…
Aracthor
  • 173
  • 7
11
votes
3 answers

How to see recently opened files in helm

What's the best way to get the recently opened files in helm. Without helm I just did C-c C-f and then arrow up to get the last opened file. And with M-r I was able to to a regexp search through recently opened files. Both doesn't work with helm…
student
  • 1,007
  • 9
  • 29
11
votes
4 answers

Replace text inside various delimiters (eg: brackets, quotes)

I often do some testing implementation with hardcoded values which I later want to change. Like ref = open('specific-file-name') Which I would like to change into ref = open(fname) I'm used to vim and there I can type ci(fname assuming that point…
kain88
  • 825
  • 7
  • 19
11
votes
2 answers

Build a minimal Emacs 25 for unit testing

I would like to build a very minimal variant of Emacs trunk for unit-testing my Emacs Lisp package. The build needs no GUI, no image support, etc. It should should essentially just be a minimal Emacs Lisp interpreter with the core Emacs Lisp…
user227
11
votes
1 answer

How do I use emacsclient as EDITOR or VISUAL?

Scenario: I'm in zsh and I want to edit a long shell command in an already open instance of Emacs. I've set $VISUALto emacsclient -n -c. When I run C-x C-e from zsh, a new Emacs frame opens, populated with contents of the zsh line. After editing and…
cg433n
  • 285
  • 2
  • 6
11
votes
2 answers

Rethrowing an error in Emacs Lisp

I need to call a function and perform a cleanup only if the function fails, and then relaunch the error. Here is the pseudo-code: (condition-case err (call-function) (error (cleanup) ;; how do I raise `err`? ))
Eleno
  • 1,428
  • 11
  • 17
11
votes
3 answers

Running ipython remotely

I am trying to run an ipython interpreter remotely (with Emacs 24.5 and native python.el), but I'm not sure I have the right approach: whenever I try to run such a command for instance (which gets triggered with C-c C-c): Run Python:…
cjauvin
  • 594
  • 4
  • 15
11
votes
1 answer

make org-blank-before-new-entry distinguish between a TODO list and a text outline?

Like many of us, I use org-mode for two different things: As a TODO list manager As a text outliner I'd like my blank lines to work differently based on context. TODO list: no blank lines text outline: automatically insert 1 blank line…
incandescentman
  • 4,111
  • 16
  • 53
11
votes
4 answers

Converting an xls file to org-mode?

Is it possible to convert convert an xls file into an org table? I found this article on the emacs wiki but wasn't able to get it to work.
Brian Fitzpatrick
  • 2,265
  • 1
  • 17
  • 40
11
votes
2 answers

Ctrl-K Kill Line, Not Screen Edge in Visual Line Mode

(I apologize in advance for my general technical / emacs inexperience. I use org-mode for writing novels, so have not delved very deep into its many options) I have visual-line-mode set as my default with the line (global-visual-line-mode t) in my…