~swinkels/+junk/emacs-config

« back to all changes in this revision

Viewing changes to init.el

  • Committer: Pieter Swinkels
  • Date: 2013-10-25 20:08:34 UTC
  • Revision ID: swinkels.pieter@yahoo.com-20131025200834-xuje5lhe2kbcujc5
Adds a new key chord to mark the current line

Show diffs side-by-side

added added

removed removed

Lines of Context:
265
265
 
266
266
(key-chord-define-global "jk" 'kill-current-line)
267
267
 
 
268
(defun mark-current-line()
 
269
  "Mark the current line."
 
270
  (interactive)
 
271
  (beginning-of-line)
 
272
  (unless mark-active
 
273
    (push-mark)
 
274
    (set 'mark-active t))
 
275
  (next-line))
 
276
  
 
277
(key-chord-define-global "jl" 'mark-current-line)
 
278
 
268
279
;settings for Semantic & EDE (to provide semantic completion)
269
280
(global-ede-mode 1)
270
281