Add bindings for whitespace cleanup, line jumping & Fefes Blog

This commit is contained in:
Vincent Ambo 2015-03-11 14:42:58 +01:00
parent 4cca819886
commit d45518f7c3
No known key found for this signature in database
GPG key ID: 66F505681DB8F43B
2 changed files with 12 additions and 3 deletions

View file

@ -42,11 +42,12 @@
;; Open project drawer ;; Open project drawer
(global-set-key (kbd "M-p") 'project-explorer-open) (global-set-key (kbd "M-p") 'project-explorer-open)
;; Add a fullscreen toggle - TODO: reenable in next Emacs release
; (global-set-key (kbd "M-RET") 'toggle-frame-fullscreen)
;; Replace standard goto-line with ace-jump-line-mode ;; Replace standard goto-line with ace-jump-line-mode
(global-set-key (kbd "M-g g") 'ace-jump-line-mode) (global-set-key (kbd "M-g g") 'ace-jump-line-mode)
(global-set-key (kbd "M-g M-g") 'goto-line-with-feedback)
;; Bind whitespace cleanup to a key
(global-set-key (kbd "C-c w") 'whitespace-cleanup)
;; Goodness from @magnars ;; Goodness from @magnars
;; I don't need to kill emacs that easily ;; I don't need to kill emacs that easily
@ -60,4 +61,7 @@
;; Org-mode agenda keys ;; Org-mode agenda keys
(global-set-key (kbd "C-c a") 'org-agenda) (global-set-key (kbd "C-c a") 'org-agenda)
;; Open Fefes Blog
(global-set-key (kbd "C-c C-f") 'fefes-blog)
(provide 'bindings) (provide 'bindings)

View file

@ -106,4 +106,9 @@ Including indent-buffer, which should not be called automatically on save."
(kill-sexp -1) (kill-sexp -1)
(insert (format "%S" value)))) (insert (format "%S" value))))
;; Open Fefes blog
(defun fefes-blog ()
(interactive)
(eww "https://blog.fefe.de/"))
(provide 'functions) (provide 'functions)