diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2016-06-29 11:30:52 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2016-06-29 11:30:52 +0200 |
| commit | 067bebe3e23a7f7f3e005911f6116cc292b0905d (patch) | |
| tree | 3056c6e262d92b1abb96554e17f556818c05d9e6 /emacs/init.el | |
| parent | f58e1c161ca8611c0b8e64fba9e77ef3d895a219 (diff) | |
| download | dotfiles-067bebe3e23a7f7f3e005911f6116cc292b0905d.tar.gz dotfiles-067bebe3e23a7f7f3e005911f6116cc292b0905d.zip | |
emacs: added some utilities through bbatsov's crux
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs/init.el')
| -rw-r--r-- | emacs/init.el | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/emacs/init.el b/emacs/init.el index c57add7..750dbaa 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -269,13 +269,24 @@ "V" (lambda () (interactive) (split-window-right) (other-window 1)) "f" 'flycheck-list-errors "e" 'eval-last-sexp - "b" 'view-buffer)) + "b" 'view-buffer + "o" 'browse-url-at-point)) (use-package evil-surround :ensure t :config (global-evil-surround-mode 1))) +;; Install a set of useful functions from @bbatsov. The bindings are following +;; Emacs style instead of being more Vim-like on purpose (I don't want to put +;; too many things into my leader and these shortcuts look sensible to me). +(use-package crux + :ensure t + :bind (("C-c d" . crux-delete-file-and-buffer) + ("C-c r" . crux-rename-file-and-buffer) + ("C-c i" . crux-find-user-init-file) + ("C-c o" . crux-open-with))) + ;; I heard you could have Twitter in Emacs, so let's roll with it. (use-package twittering-mode :ensure t @@ -361,14 +372,14 @@ :ensure t :pin melpa-stable :config - (mssola-go-mode)) - -(add-hook 'go-mode-hook 'warnings-mode-hook) -(add-hook 'go-mode-hook 'go-eldoc-setup) -(add-hook 'go-mode-hook - (lambda () - (setq indent-tabs-mode t) - (flyspell-prog-mode))) + (mssola-go-mode) + + (add-hook 'go-mode-hook 'warnings-mode-hook) + (add-hook 'go-mode-hook 'go-eldoc-setup) + (add-hook 'go-mode-hook + (lambda () + (setq indent-tabs-mode t) + (flyspell-prog-mode)))) ;; Smart tabs (use-package smart-tabs-mode |
