Questions tagged [compile-mode]

28 questions
7
votes
1 answer

ANSI escape sequences in compilation-mode

When you run various "modern" compilation or test tools you get ANSI codes in the output. I'd like to either render them correctly (ideally) or otherwise strip them. I've tried applying either term-mode-hook to the compilation-minor-mode as…
Mark
  • 1,409
  • 1
  • 15
  • 20
6
votes
1 answer

Automatically don't save buffers before compiling

I often have buffers from unrelated projects open. Before compiling I use projectile-save-project-buffers to save all relevant buffers. If other buffers happen to contain unsaved modifications, however, I will still be prompted about them, before I…
B_old
  • 717
  • 5
  • 14
6
votes
2 answers

How to compile and run a C++ file?

I don't know how to compile and run a C++ file in GNU Emacs. I searched on the various sites and stackexchange network, but from them what I understood was write something like make compile, and I don't know what does that mean, obviously compiling…
garakchy
  • 193
  • 1
  • 2
  • 9
6
votes
0 answers

How to make eshell recognize path to files and make it clickable?

In the compilation environment in emacs (M-x compile), whenever there is a path to file (ex.: ../src/code.cpp:21:3: warning: comparison between...) it highlights the path and make it clickable. When clicked, it opens the file in the corresponding…
rph
  • 315
  • 2
  • 7
5
votes
1 answer

Automatically scroll *compilation* window, beside source-buffer window

I edit C in two windows side-by-side, source on left, compilation results on right. I have F5 bound to recompile. Currently I have to do: F5 to run make, Move to *compilation* buffer in right window, Scroll down to end of buffer, Move back to left…
Scotsgeek
  • 61
  • 2
3
votes
1 answer

How do you abort an emacs M-x compile compilation

How do you abort an emacs M-x compile compilation? I'm editing a bash file, and I "test execute it" by doing M-x compile. What I tried - googled:emacs abort compilation The file I'm working on is like this #!/bin/bash …
american-ninja-warrior
  • 3,773
  • 2
  • 21
  • 40
3
votes
1 answer

Fix compilation mode paths when compiling in container or remotely

Recently the scenario of editing project source code locally but building the project remotely on another machine (for example inside a Docker container or an Amazon Web Services host) is becoming more common. The setup typically involves starting a…
2
votes
1 answer

How to disable ggtags' *ggtags-global* buffer scrolling?

when I do next-error, the *ggtags-global* buffer scrolls down one line. I hope that the *ggtags-global* buffer doesn't scroll, whether it's executing next-error, previous-error, or compile-goto-error. By default it scrolls which is annoying:
dongli si
  • 63
  • 8
2
votes
1 answer

help with regexp for compilation-mode (IAR EWARM )

I was wondering if anyone could help me figure out why the compilation-error-regexp for IAR ( compilation-error-regexp-alist-alist, in compile.el ) does not work? The regexp is: (iar …
ned_zeppelin
  • 113
  • 6
1
vote
0 answers

Customize compilation mode for a new language

I am trying to add a language called lesim to compilation mode so that errors are parsed correctly. The error line does not include the file name. Among the ways I have tried to get around this, what has worked best has been to store the filename in…
Stefano
  • 131
  • 7
1
vote
2 answers

Send to python-shell-interpreter from the project root

How can I tell the shell to always open relative to my project root? I have the following python project structure: mypyjunk ├── mypyjunk │   ├── common.py │   ├── __init__.py │   └── jitter.py ├── README.md └── tests ├── __init__.py └──…
Mittenchops
  • 289
  • 1
  • 8
1
vote
1 answer

make compile-goto-error use view-mode when visiting source buffer

After using M-x find-grep I have a list of files with position information in a compile buffer. Now I want to visit the files to check, which can be done with , calling compile-goto-error to switch/open file into buffer at given position.…
Juha
  • 13
  • 5
1
vote
1 answer

File-specific TeX compiling options?

I have TeX files that Aquamacs compiles by default with pdflatex and other files compiled by default with latex (so I get a dvi). If I make a copy of file that Aquamacs compiles with latex, that copy is compiled with latex. Similarly, a copy of a…
gr1g
  • 13
  • 2
1
vote
1 answer

Why can't Emacs find gfortran on my Mac?

I have tried to compile a simple helloworld.f95 on my Mac, using emacs. The root of emacs was set in the directory containing helloworld.f95. I used the following commands M-x compile gfortran -o helloworld helloworld.f95 I got the following…
Tian
  • 288
  • 1
  • 8
1
vote
0 answers

Syntax highlight strings in compilation-mode

Is it possible to activate syntax highlighting for strings in compilation mode? Sometimes the compilation error output of some C++ linter is quite unreadable. Lengthy types and function definitions are printed with some small explanation in between.…
theldoria
  • 1,825
  • 1
  • 13
  • 25
1
2