Questions tagged [automation]

19 questions
6
votes
2 answers

Insert parens while completing functions in company mode

If i select first option it will become l.remove But as the completion candidate is function type, how can i make it to l.remove() so that i don't have to manually type parens?
Chillar Anand
  • 4,042
  • 1
  • 23
  • 52
5
votes
1 answer

How can I create an function to build a table of contents at a marker?

I'm planning to move StackMode to a literate program once it matures, but until then I'm using the conventional ^L section markers. My files look like this: ;;; Code: ^L ;;; Section 1 Title (defun code () things) ^L ;;; Section 2 Title (defun…
Sean Allred
  • 6,861
  • 16
  • 85
3
votes
2 answers

What are the main differences between latexmk and C-c C-a from Auctex?

I was wondering if anyone knows if C-c C-a in AucTeX is using behind the scenes latexmk or not? I've tried looking into the source files for both C-c C-c and C-c C-a but I couldn't find in any those traces of latexmk. On a side note what best way to…
Kirk Walla
  • 219
  • 1
  • 8
3
votes
2 answers

Make siunitx.el automatically recognize values and unit of unformatted text

I use siunitx to typeset units in LaTeX. This is quite painless when typesetting it directly because of Emacs's siunitx.el (see below). However, sometimes I copy exercises or solutions containing units from the Web or other sources which are not…
student
  • 1,007
  • 9
  • 29
2
votes
2 answers

After updating my packages, two packages are not working anymore. How to solve this? Downgrading it? Bug reporting to maintainers? Fixing?

This is my config file. As you can see, on line 351, there is: ;; Update my Emacs' packages every week (use-package auto-package-update :custom (auto-package-update-interval 7) (auto-package-update-prompt-before-update t) …
2
votes
2 answers

How can I automate the editing of a source file, switching to other window, recall and exec. previous shell command and switch back to starting buffer

In this scenario I press C-x C-s to save the file being edited in upper window C-x o to switch focus to lower window Alt-p to recall previous command in M-x shell buffer Enter to execute command # the command takes 4-5 seconds to complete, without…
american-ninja-warrior
  • 3,773
  • 2
  • 21
  • 40
2
votes
1 answer

Compile and run C-Programs in Emacs

I'm currently learning C with a book that has many small code examples that the reader is supposed to write, run and experiment with. I'm using Emacs as my primary tool for everything that has to do with writing, especially LaTeX and Org-Mode to…
Tim Hilt
  • 297
  • 1
  • 11
2
votes
2 answers

Command to automatically define a resource variable in an Android project

When coding Android projects, resource variables are somewhat cumbersome to define, as they involve visiting a file far away in the directory structure and writing xml(!). Say I want to define a string resource called street. I'll need to: Visit…
Malabarba
  • 22,878
  • 6
  • 78
  • 163
2
votes
1 answer

Repeat actions in slow motion, for presentation purposes

I would like to repeat actions (preferably as a keyboard macro, but I am open to other solutions), in some kind of automated, "slow motion". By "slow motion", I mean at a speed that is close to human pace, rather than usual full speed of C-x e. The…
Florent Georges
  • 203
  • 1
  • 7
2
votes
2 answers

Does your project use Elisp for build automation?

I'm building a new appliance, linking BusyBox with Tor on top of a minimal GNU/Linux operating system. I'd like to try something different for the automated build infrastructure with this one and Emacs Lisp has been calling me lately. Do you have a…
Ian Bryant
  • 21
  • 2
1
vote
2 answers

How to Organize Comments into a Grid on Emacs?

I see this done a lot. Don't know what it's called. Don't know how to do it. See how the comments are all lined up? int myNum = 5; // Integer (whole number) float myFloatNum = 5.99f; // Floating point number char myLetter = 'D'; …
1
vote
0 answers

Add custom parenthesis before and after selection

I use emacs to write latex and I need to enclose a lot of small expression in braces ( \{ and \} for latex) I would like to select the text to enclose and have some command that would add { before the selected text and } after. Is it possible with a…
afiori
  • 121
  • 3
1
vote
1 answer

How to paste to another app from a shell script

I've been getting very vexed by the following. Goal: Take the clipboard contents and paste them into another application by using a shell script called by Emacs, followed by a Return. [This is for entering a command in another application.] Problem:…
1
vote
1 answer

What's the name of the auto indent code?

What's the name of that feature that auto indent the code when I press tab (Even fi the indentation is more to the right, the tab "erases" the abundany spaces) and how can I change the size of it?
Igorzovisk
  • 121
  • 1
1
vote
2 answers

Highlight text equivalent to the marked region and search and replace on the fly

Edit: Highlight text that matches the marked region, without the use of any key, but just by having a region marked. Then have two commands to directly move across the highlighted text, forward and backward. Edit: For example if I mark "hello",…
mikl
  • 413
  • 3
  • 19
1
2