Commit 5546ab685fe7
Changed files (2)
.emacs.d
.gitignore.d
.emacs.d/emacs.org
@@ -1876,75 +1876,6 @@
(cons exp 'ruby-mode)))
#+END_SRC
-** Go
-
- Let's install go-mode and configure it.
-
-
- #+BEGIN_SRC emacs-lisp
- (exec-path-from-shell-copy-env "GOPATH")
- (use-package go-mode
- :ensure t
- :bind (("C-c C-g a" . go-test-current-project)
- ("C-c m" . go-test-current-file)
- ("C-c ." . go-test-current-test)
- ("C-c b" . go-run)
- ("C-h f" . godoc-at-point)))
- #+END_SRC
-
- And install stuffs, like autocomplete, documentation, errorcheck, tests.
-
- #+BEGIN_SRC emacs-lisp
- (use-package go-autocomplete
- :ensure t)
- (use-package go-eldoc
- :ensure t)
- ;; I have to test this more before doing anything
- ;;(use-package go-projectile
- ;; :ensure t)
- (use-package go-errcheck
- :ensure t)
- (use-package gotest
- :ensure t)
- #+END_SRC
-
- Setup the go-mode hook to activate =gofmt= on save, oracle-mode and
- co.
-
- #+BEGIN_SRC emacs-lisp
- (defun my-go-mode-hook ()
- (setq gofmt-command "goimports")
- (add-hook 'before-save-hook 'gofmt-before-save)
- (if (not (string-match "go" compile-command))
- (set (make-local-variable 'compile-command)
- "go build -v && go test -v && go vet")))
- (add-hook 'go-mode-hook 'my-go-mode-hook)
- #+END_SRC
-
-
-** Compilation mode
-
-*** Compilation mode improvements
-
- See http://stackoverflow.com/questions/3072648/cucumbers-ansi-colors-messing-up-emacs-compilation-buffer
-
-
- #+BEGIN_SRC emacs-lisp
- (require 'ansi-color)
- (defun my/colorize-compilation-buffer ()
- (toggle-read-only)
- (ansi-color-apply-on-region (point-min) (point-max))
- (toggle-read-only))
- (add-hook 'compilation-filter-hook 'my/colorize-compilation-buffer)
- #+END_SRC
-
- And let's configure the compilation-mode to follow the compilation, not waiting
- at the top..
-
- #+BEGIN_SRC emacs-lisp
- (setq compilation-scroll-output t)
- #+END_SRC
-
** SQL
Emacs is really more than an editor. The SQL mode is quick cool to
.gitignore.d/emacs-config
@@ -2,6 +2,9 @@
!.emacs.d
!.emacs.d/*
!.emacs.d/**
+.emacs.d/gotools
+.emacs.d/provided/*
+!.emacs.d/provided/.placeholder
.emacs.d/emacs.el
.emacs.d/user.el
.emacs.d/custom.el