[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master f73cf0e 05/40: Added README file

From: Alexey Veretennikov
Subject: [elpa] master f73cf0e 05/40: Added README file
Date: Fri, 29 Jan 2016 23:29:28 +0000

branch: master
commit f73cf0e6796858b4e44ccffb9dcf6247ca220bd0
Author: Alexey Veretennikov <address@hidden>
Commit: Alexey Veretennikov <address@hidden>

    Added README file
 README.md |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md
new file mode 100644
index 0000000..fea8bd6
--- /dev/null
+++ b/README.md
@@ -0,0 +1,13 @@
+There is a minor mode for Emacs acting like occur but w/o creating a new 
window. It just hides all the text excepting lines containing matches. To use 
it, add the following to your .emacs file:
+(require 'loccur)
+;; defines shortcut for loccur of the current word
+(define-key global-map [(control o)] 'loccur-current)
+;; defines shortcut for the interactive loccur command
+(define-key global-map [(control meta o)] 'loccur)
+;; defines shortcut for the loccur of the previously found word
+(define-key global-map [(control shift o)] 'loccur-previous-match)
+Now you can point the cursor to the word and press "Ctrl+o" to hide all lines 
except those containing this word. Moving cursor to the required line and 
pressing "Ctrl+o" again will shows all the text. The good thing about this mode 
is what you can navigate through the buffer easily. "Ctrl+Shift+o" will repeat 
last search. 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]