aboutsummaryrefslogtreecommitdiff
path: root/nix/users/fcuny
diff options
context:
space:
mode:
Diffstat (limited to 'nix/users/fcuny')
-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)