aboutsummaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-05-19 19:32:18 -0700
committerFranck Cuny <franck@fcuny.net>2025-05-19 19:32:18 -0700
commit8fa7ccf32f8624ed54894b3584c36c7bb1b5bcb3 (patch)
treea0035915d11f3cf3f4887f6b6159324e44976435 /nix
parentmove settings related to backups together (diff)
downloadinfra-8fa7ccf32f8624ed54894b3584c36c7bb1b5bcb3.tar.gz
keybindings for flymake + copy some environment variables
Diffstat (limited to 'nix')
-rw-r--r--nix/users/fcuny/configs/emacs/init.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/nix/users/fcuny/configs/emacs/init.el b/nix/users/fcuny/configs/emacs/init.el
index 92a9508..5673b9a 100644
--- a/nix/users/fcuny/configs/emacs/init.el
+++ b/nix/users/fcuny/configs/emacs/init.el
@@ -61,13 +61,18 @@
(global-set-key (kbd "C-c C-r") 'eval-region)
(global-set-key (kbd "C-c C-d") 'eval-defun)
(global-set-key (kbd "C-c C-b") 'eval-buffer)
-(global-set-key (kbd "C-c ! b") 'flymake-show-project-diagnostics)
+(global-set-key (kbd "C-c ! D") 'flymake-show-project-diagnostics)
+(global-set-key (kbd "C-c ! d") 'flymake-show-buffer-diagnostics)
(global-set-key (kbd "C-c ! n") 'flymake-goto-next-error)
(global-set-key (kbd "C-c ! p") 'flymake-goto-prev-error)
+(global-set-key (kbd "C-c ! s") 'flymake-start)
;; load the PATH properly on macOS
(require 'exec-path-from-shell)
-(exec-path-from-shell-initialize)
+(let ((envs '("PATH" "GOPATH" "GOBIN")))
+ (exec-path-from-shell-copy-envs envs))
+
+(exec-path-from-shell-copy-envs )
;; ensure we highlights whitespaces
(require 'whitespace)