Browse files

Remove `jaunte-global-hint-unit'.

Use `setq-default' if need change default value.
  • Loading branch information...
kawaguchi committed Feb 11, 2012
1 parent efd2367 commit 214c97cb9c7bfd211aa6eefd24653032bb713d7f
Showing with 4 additions and 7 deletions.
  1. +4 −7 jaunte.el
@@ -40,18 +40,15 @@
(defvar jaunte--hints nil)
-(defvar jaunte-global-hint-unit 'word
- "Global hint unit. You can set this parameter same as `thing-at-point'")
-(defvar jaunte-local-hint-unit nil
- "local hint unit. This variable is buffer local variable")
-(make-variable-buffer-local 'jaunte-local-hint-unit)
+(defvar jaunte-hint-unit 'word
+ "Hint unit. You can set this parameter same as `thing-at-point'.")
+(make-variable-buffer-local 'jaunte-hint-unit)
(defun jaunte-forward-word ()
"Move to beginning of a forward word, and return point."
(if (looking-at "\\w")
- (forward-thing (or jaunte-local-hint-unit jaunte-global-hint-unit)))
+ (forward-thing jaunte-hint-unit))
(if (re-search-forward "\\w" nil 'eob)

0 comments on commit 214c97c

Please sign in to comment.