You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I'd like to use this hook only for a "copy/second" python-execute-file function (I mean this one), e.g. bind on SPC m c n) and use the current python-execute-file function without the hook, i.e. its normal behavior only allowing one *compilation* buffer without creating a new one.
What would be the best way to do that?
I saw in the documentation that the buffer name is set by a function defined in compilation-buffer-name-function. Is it possible to temporary define the function inside python-execute-file or are hooks the better/preferred way to achieve this?
This discussion was converted from issue #15502 on May 10, 2022 03:02.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've tried to add the following hook, which renames the *compilation* buffer every time I run a Python file using
SPC m c c
.However, I'd like to use this hook only for a "copy/second"
python-execute-file
function (I mean this one), e.g. bind onSPC m c n
) and use the currentpython-execute-file
function without the hook, i.e. its normal behavior only allowing one *compilation* buffer without creating a new one.What would be the best way to do that?
I saw in the documentation that the buffer name is set by a function defined in
compilation-buffer-name-function
. Is it possible to temporary define the function insidepython-execute-file
or are hooks the better/preferred way to achieve this?Beta Was this translation helpful? Give feedback.
All reactions