Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [automation]

The tag has no usage guidance.

1
vote
0answers
42 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 ...
2
votes
2answers
47 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 # ...
0
votes
2answers
81 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 ...
1
vote
1answer
178 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 ...
0
votes
1answer
74 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 ...
2
votes
1answer
112 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 ...
1
vote
1answer
79 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?
0
votes
2answers
420 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 ...
1
vote
0answers
119 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 ...
4
votes
2answers
306 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?
2
votes
2answers
232 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 ...
1
vote
1answer
71 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: [...
3
votes
2answers
89 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 ...
5
votes
1answer
64 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 ...
2
votes
2answers
209 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 ...