|
From: | Emanuel Berg |
Subject: | Re: Exporting form emacs texinfo-mode to dvi, pdf, and html |
Date: | Sat, 26 Jun 2021 20:03:00 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
lisa-asket wrote: > Ok, let's do it. It also says one can use mode hooks to > specify it in certain modes, like this: > > (add-hook 'c-mode-hook > (lambda () > (unless (or (file-exists-p "makefile") > (file-exists-p "Makefile")) > (setq-local compile-command > (concat "make -k " > (if buffer-file-name > (shell-quote-argument > (file-name-sans-extension buffer-file-name)))))))) You don't need any of that because the `compile-command', e.g. "make -j 4 -s -k " that can be the same for every mode or programming language or formatting you do. Also there's no need to look for a Makefile because it looks in the same directory as the buffer for one and if there is one, that's where it happens. Time to step up your game :( -- underground experts united https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |