Package manager for emacs 24 and a shortcut for query-replace-regexp

This commit is contained in:
Julien Palard 2014-12-22 11:34:24 +01:00
parent b8b2a56878
commit 2b14a525c4
1 changed files with 11 additions and 0 deletions

11
emacs
View File

@ -236,3 +236,14 @@
(let ((matching-text (blink-matching-open)))
(when matching-text
(message matching-text)))))
;; As C-M-% is almost impossible to type in a terminal emulator:
(global-set-key "\C-x\M-%" 'query-replace-regexp)
(when (>= emacs-major-version 24)
(require 'package)
(package-initialize)
(add-to-list 'package-archives
'("melpa-stable" . "http://melpa-stable.milkbox.net/packages/") t)
)