My favorites | Sign in
dea
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
;; -*- Emacs-Lisp -*-

;; Time-stamp: <2010-09-05 16:56:36 Sunday by taoshanwen>

(defun pulse-settings ()
"Settings for `pulse'."
(defadvice exchange-point-and-mark-nomark (after pulse-advice activate)
"Cause the line that is `goto'd to pulse when the cursor gets there."
(when (and pulse-command-advice-flag (interactive-p)
(> (abs (- (point) (mark))) 400))
(pulse-momentary-highlight-one-line (point))))

(defadvice switch-to-buffer (after pulse-advice activate)
"Cause the current line of new buffer to pulse when the cursor gets there."
(when (and pulse-command-advice-flag (interactive-p))
(pulse-momentary-highlight-one-line (point))))

(defadvice ido-switch-buffer (after pulse-advice activate)
"Cause the current line of new buffer to pulse when the cursor gets there."
(when (and pulse-command-advice-flag (interactive-p))
(pulse-momentary-highlight-one-line (point))))

(defadvice visit-.emacs (after pulse-advice activate)
"Cause the current line of .emacs buffer to pulse when the cursor gets there."
(when (and pulse-command-advice-flag (interactive-p))
(pulse-momentary-highlight-one-line (point))))

(defadvice beginning-of-buffer (after pulse-advice activate)
"Cause the current line of buffer to pulse when the cursor gets there."
(when (and pulse-command-advice-flag (interactive-p))
(pulse-momentary-highlight-one-line (point))))

(pulse-toggle-integration-advice t))

(eval-after-load "pulse"
`(pulse-settings))

(provide 'pulse-settings)

Change log

r1294 by ahei on Sep 5, 2010   Diff
Fix some small bugs.
Go to: 
Project members, sign in to write a code review

Older revisions

r1250 by ahei on Jul 18, 2010   Diff
When is not `window-system', disable
pulse.
r1151 by ahei on Apr 27, 2010   Diff
Small changes.
r1082 by ahei on Apr 10, 2010   Diff
Make my emacs start more quickly use
eval-after-load technique.
Move some settings of .emacs to misc-
settings.el.
All revisions of this file

File info

Size: 1561 bytes, 38 lines
Powered by Google Project Hosting