Questions tagged [automation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
57 views

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; /...
Matthaeus Gaius Caesar's user avatar
2 votes
2 answers
719 views

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-...
Pedro Delfino's user avatar
3 votes
2 answers
195 views

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 ...
Kirk Walla's user avatar
0 votes
0 answers
61 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 ...
Konrad Eisele's user avatar
1 vote
0 answers
54 views

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 ...
afiori's user avatar
  • 121
2 votes
2 answers
90 views

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 # ...
american-ninja-warrior's user avatar
0 votes
2 answers
171 views

Automating magit

How can I do this more efficiently, assuming I do this hundreds of times a day - it becomes tedious. # while editing a source code file M-x magit-stage-file M-x magit-commit type in wip C-c to ...
american-ninja-warrior's user avatar
2 votes
1 answer
1k views

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 ...
Tim Hilt's user avatar
  • 297
1 vote
1 answer
226 views

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 ...
Bill Rising's user avatar
2 votes
1 answer
215 views

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 ...
Florent Georges's user avatar
1 vote
1 answer
95 views

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's user avatar
1 vote
2 answers
1k views

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 ...
mikl's user avatar
  • 423
1 vote
0 answers
189 views

Triggering abbreviation expansion or auto completion automatically from a regular expression match?

With abbrev mode, I can define abbreviations that trigger when I type a certain term. For example, typing "yn" would be expanded to "Your Name". For this, "yn" must have been defined as an ...
Felix Hoffmann's user avatar
6 votes
2 answers
736 views

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's user avatar
2 votes
2 answers
389 views

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 ...
Ian Bryant's user avatar
1 vote
1 answer
81 views

How can I modify a variable in a javascript file that meets specific conditions?

Lets say I'm editing a javascript file in emacs that has objects as such scattered through out the file: foo: [1], foo: [2], foo: [3], foo: [4], foo: [5], foo: [6], foo: [7] obo: [1], obo: [2], obo: [...
user2522280's user avatar
3 votes
2 answers
129 views

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 ...
student's user avatar
  • 1,007
5 votes
1 answer
68 views

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 ...
Sean Allred's user avatar
  • 6,871
2 votes
2 answers
252 views

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 ...
Malabarba's user avatar
  • 23k