Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zig-run should save the current buffer #106

Open
indradhanush opened this issue Apr 16, 2024 · 0 comments
Open

zig-run should save the current buffer #106

indradhanush opened this issue Apr 16, 2024 · 0 comments

Comments

@indradhanush
Copy link

indradhanush commented Apr 16, 2024

First of all thank you so much for this package! ❤️

I just wrote my own function to save the current buffer when I execute zig-run with C-x C-r in doomemacs:

(use-package! zig-mode
  :config
  (defun my/save-buffer-and-execute-zig-run ()
    "Save the current buffer and execute `zig-run`."
    (interactive)
    (save-buffer)
    (zig-run))

  (define-key zig-mode-map (kbd "C-c C-r") #'my/save-buffer-and-execute-zig-run))

Without this most of the time I found myself pressing C-c C-r only to realise that I haven't saved the file yet.

Should zig-run always save the buffer when it is executed? I'd be happy to send in a PR but wanted to check first before I sent one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant