summaryrefslogtreecommitdiffstats
path: root/jeschli/2configs
diff options
context:
space:
mode:
authorjeschli <jeschli@gmail.com>2018-11-02 09:41:47 +0100
committerjeschli <jeschli@gmail.com>2018-11-02 09:41:47 +0100
commita931b19ababfb446c77c55c075e35f22f176088e (patch)
tree2f2d7632ef85fc77e2e7199f1b925ac81a8004ca /jeschli/2configs
parent17039f28bc669ccf2a45a9fbdcb76a6b72c0ca97 (diff)
j emacs: modify go-mode
Diffstat (limited to 'jeschli/2configs')
-rw-r--r--jeschli/2configs/emacs.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/jeschli/2configs/emacs.nix b/jeschli/2configs/emacs.nix
index 1c92f601f..636c8dafd 100644
--- a/jeschli/2configs/emacs.nix
+++ b/jeschli/2configs/emacs.nix
@@ -25,10 +25,22 @@ let
;; (require 'evil-org-agenda)
;; (evil-org-agenda-set-keys)
'';
+
+ goMode = ''
+ (add-to-list 'exec-path "~/go/bin")
+ (add-hook 'go-mode-hook
+ (lambda ()
+ (setq-default)
+ (setq tab-width 2)
+ (setq standard-indent 2)
+ (setq indent-tabs-mode nil)))
+ '';
+
ido = ''
(require 'ido)
(ido-mode t)
'';
+
windowCosmetics = ''
(menu-bar-mode -1)
(tool-bar-mode -1) ; Disable the button bar atop screen
@@ -54,16 +66,20 @@ let
(setq org-agenda-files (quote ("~/projects/notes")))
)
'';
+
theme = ''
(load-theme 'monokai-alt t)
'';
+
recentFiles = ''
(recentf-mode 1)
(setq recentf-max-menu-items 25)
(global-set-key "\C-x\ \C-r" 'recentf-open-files)
'';
+
dotEmacs = pkgs.writeText "dot-emacs" ''
${evilMode}
+ ${goMode}
${ido}
${packageRepos}
${orgMode}