Skip to content

Instantly share code, notes, and snippets.

View hydandata's full-sized avatar
💭
Moved to @chkhd

David Chkhikvadze hydandata

💭
Moved to @chkhd
View GitHub Profile
@hydandata
hydandata / git-gutter.el
Last active October 24, 2015 23:53
git gutter config
;;; Use the fringe, but make it really small
(setq fringe-mode 5)
(set-fringe-mode 5)
;;; Show uncommited stuff in the margin
;;; this also has the nice bonus of letting you
;;; easily jump between the hunks and stage them
(when window-system
(require 'git-gutter-fringe)
(setq git-gutter-fr:side 'right-fringe))
### Keybase proof
I hereby claim:
* I am hydandata on github.
* I am hydandata (https://keybase.io/hydandata) on keybase.
* I have a public key whose fingerprint is 78C6 F698 8AB6 5D53 DF54 9269 8E76 EA6A AB7F 21DA
To claim this, I am signing this object:
;;selecting whole line made easy
(transient-mark-mode 1)
(defun soft-select-current-line ()
"Select the current line"
(interactive)
(back-to-indentation) ;move to soft start of line
(set-mark (line-end-position)))
(global-set-key (kbd "C-c m") 'soft-select-current-line)