mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 08:14:15 +00:00
More sophisticated -I flag appending
This commit is contained in:
parent
cf2abce482
commit
e9e8fd8a93
1 changed files with 2 additions and 3 deletions
|
|
@ -106,9 +106,8 @@
|
|||
(let ((new-dir (read-directory-name "directory? ")))
|
||||
(with-current-buffer buffer
|
||||
(setq compilation-arguments
|
||||
(cons (concat (car compilation-arguments)
|
||||
(format " -I%s "
|
||||
new-dir))
|
||||
(cons (string-replace "-I" (format "-I%s -I" new-dir)
|
||||
(car compilation-arguments))
|
||||
(cdr compilation-arguments)))
|
||||
(call-interactively #'recompile))))))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue