Questions tagged [compile]

29 questions
4
votes
0 answers

How do I make compilation use vterm instead of the default shell it is using?

I am running M-x compile commands in my Projectile projects. I would like to use vterm for running them as the compilations are getting very slow because the project is very large. How do I make compilation use vterm instead of the default shell it…
Vicky
  • 141
  • 2
2
votes
0 answers

Compiled Emacs but Shared Object files Missing Unless LD_LIBRARY_PATH environment variable correctly set

I compiled Emacs to run on Redhat Linux. Since I wanted to compile it with --with-native-compilation flag, I had to install Redhat's developer tools to get libgccjit. These tools are installed in /opt/rh/devtoolset-10/root. An enable script is…
Jacob Lee
  • 227
  • 1
  • 7
2
votes
1 answer

What controls whether `M-x compile` splits a frame into two windows?

To resolve some performance issues I refactored my .emacs, and since the refactoring, M-x compile does not split a frame into two windows. Instead, running M-x compile takes over the entire frame with a single *compilation* window. This workflow…
Norman Ramsey
  • 1,113
  • 6
  • 13
2
votes
1 answer

"Auto-Confirmation: Automatically Saying Yes" but how?

i have (defun insert-buffername () (interactive) (compile (concat "lua " (buffer-file-name)))) (global-set-key (kbd "C-c C-e") #'insert-buffername) but when i use this key binding it always asks me "Save file: (y, n, !, ...)" question which i…
2
votes
0 answers

Compiling gccemacs (Emacs 28) from source. To bootstrap or not to bootstrap?

With the following build script on Big Sur + homebrew, I get horribly long compile times when using make bootstrap as opposed to simply make on gccemacs. I've read the Makefile in the src directory - the explanation for bootstrap is pretty stoic. #…
o__b
  • 23
  • 4
2
votes
1 answer

Create custom "mode-hook" for other programming languages

For C/C++, I have the following to be run when I do M-x compile on a .c/.cpp file (add-hook 'c++-mode-hook (lambda () (set (make-local-variable 'compile-command) (concat "g++ " buffer-file-name " && ./a.out" )…
mle0312
  • 295
  • 1
  • 8
1
vote
0 answers

Emacs with JSON support

I'm trying to compile emacs 28.2 (from https://ftp.gnu.org/gnu/emacs/) with json support on a Ubuntu-based system (Linux Mint). But I don't get it to work meaning that json-available-p is void and I cannot use the json-parse-string function. I…
dmw64
  • 155
  • 4
1
vote
1 answer

Function that determines and returns the programming language of a given file

I'm working on some compiler shortcuts: I want to write a function (cmp FILE-NAME &optional args) that will use FILE-NAME and args to construct the appropriate COMMAND to call (compile COMMAND) with. For example: (cmp "Test.java" "-Xlint:all") will…
1
vote
2 answers

Using sed to filter/modify make output

I have to live with a build system that moves pieces of source around before running make. I have a function that pipes output of make through a sed to remap file references back to the source tree. (defun mybuild () "Run mybuild" (interactive) …
zzz777
  • 111
  • 4
1
vote
3 answers

How to add -shell-escape option to latex compile command

Background story: I have to compile my LaTeX document with the -shell-escape command line option because the pgfplots library I am using calls gnuplot. This was necessary to get a plot of a recursive function requiring double precision…
user33985
1
vote
1 answer

Can't make emacs compile with locally installed harfbuzz

Whenever I start the ./configure script for emacs at the end of it I get the following message: configure: WARNING: This configuration uses the Cairo graphics library, but not the HarfBuzz font shaping library (minimum version 0.9.42). We…
Percee
  • 143
  • 6
1
vote
1 answer

M-x compile hangs with WARNING: terminal is not fully functional

I have been using M-x compile for ages. Lately (our sysadmin has updated many things) it hangs after giving this message: WARNING: terminal is not fully functional - (press RETURN). Pressing return does nothing. I have tried changing the terminal…
1
vote
1 answer

Function `cd` not working correctly in conjunction with `tramp` and `compile`

For context I am looking at a remote file; for example: /ssh:desktop:/home/user/project/src/file.cpp. I then issue the interactive command compile like so: cd /ssh:desktop:/home/user/project/Release && make And get the following output: -*- mode:…
John DeBord
  • 550
  • 3
  • 13
1
vote
1 answer

Create shortcut for interactive compile command

I know that we can start compile interactively using C-u M-x compile. Is there a way to start this whenever I run M-x compile? If that cannot be done, how do I create a shortcut to C-u M-x compile? My current shortcut for M-x compile…
mle0312
  • 295
  • 1
  • 8
1
vote
2 answers

How to Run a Context Sensitive Compile?

When working on projects which use multiple kinds of build-systems, sometimes I want to run a make command based on the project, without having to manually setup project spesific hooks. Is there a good way to perform this in Emacs? To expand on…
ideasman42
  • 8,375
  • 1
  • 28
  • 105
1
2