Questions tagged [automation]
The automation tag has no summary.
21 questions
0
votes
0
answers
106
views
A way to make doc-view fit images by the width of the window automatically
So I have been using AUCTeX on Emacs recently, and I have been using doc-view to display the compiled pdf, but the doc-view standard resolution is too low and the image looks foggy, I increased the ...
1
vote
1
answer
86
views
Auto-answer "really edit the buffer"
I frequently have auto-revert-mode enabled for log files, where the mode hook runs ansi-color-apply-on-region. That deletes ANSI color sequences and adds overlays to produce the desired color.
That ...
1
vote
2
answers
88
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; /...
2
votes
2
answers
1k
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-...
3
votes
2
answers
419
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 ...
0
votes
0
answers
113
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 ...
1
vote
0
answers
66
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
2
answers
112
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
2
answers
220
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 ...
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 ...
1
vote
1
answer
288
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
1
answer
254
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
1
answer
105
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?
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 ...
1
vote
0
answers
207
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 ...
6
votes
2
answers
826
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?
3
votes
2
answers
444
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
1
answer
97
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
2
answers
180
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
1
answer
81
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
2
answers
284
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 ...