1 ;;; ruler-mode.el --- display a ruler in the header line
3 ;; Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006,
4 ;; 2007, 2008 Free Software Foundation, Inc.
6 ;; Author: David Ponce <david@dponce.com>
7 ;; Maintainer: David Ponce <david@dponce.com>
8 ;; Created: 24 Mar 2001
10 ;; Keywords: convenience
12 ;; This file is part of GNU Emacs.
14 ;; This program is free software; you can redistribute it and/or
15 ;; modify it under the terms of the GNU General Public License as
16 ;; published by the Free Software Foundation; either version 3, or (at
17 ;; your option) any later version.
19 ;; This program is distributed in the hope that it will be useful, but
20 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
21 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 ;; General Public License for more details.
24 ;; You should have received a copy of the GNU General Public License
25 ;; along with this program; see the file COPYING. If not, write to
26 ;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
27 ;; Boston, MA 02110-1301, USA.
31 ;; This library provides a minor mode to display a ruler in the header
32 ;; line. It works from Emacs 21 onwards.
34 ;; You can use the mouse to change the `fill-column' `comment-column',
35 ;; `goal-column', `window-margins' and `tab-stop-list' settings:
37 ;; [header-line (shift down-mouse-1)] set left margin end to the ruler
38 ;; graduation where the mouse pointer is on.
40 ;; [header-line (shift down-mouse-3)] set right margin beginning to
41 ;; the ruler graduation where the mouse pointer is on.
43 ;; [header-line down-mouse-2] Drag the `fill-column', `comment-column'
44 ;; or `goal-column' to a ruler graduation.
46 ;; [header-line (control down-mouse-1)] add a tab stop to the ruler
47 ;; graduation where the mouse pointer is on.
49 ;; [header-line (control down-mouse-3)] remove the tab stop at the
50 ;; ruler graduation where the mouse pointer is on.
52 ;; [header-line (control down-mouse-2)] or M-x
53 ;; `ruler-mode-toggle-show-tab-stops' toggle showing and visually
54 ;; editing `tab-stop-list' setting. The `ruler-mode-show-tab-stops'
55 ;; option controls if the ruler shows tab stops by default.
57 ;; In the ruler the character `ruler-mode-current-column-char' shows
58 ;; the `current-column' location, `ruler-mode-fill-column-char' shows
59 ;; the `fill-column' location, `ruler-mode-comment-column-char' shows
60 ;; the `comment-column' location, `ruler-mode-goal-column-char' shows
61 ;; the `goal-column' and `ruler-mode-tab-stop-char' shows tab stop
62 ;; locations. Graduations in `window-margins' and `window-fringes'
63 ;; areas are shown with a different foreground color.
65 ;; It is also possible to customize the following characters:
67 ;; - `ruler-mode-basic-graduation-char' character used for basic
68 ;; graduations ('.' by default).
69 ;; - `ruler-mode-inter-graduation-char' character used for
70 ;; intermediate graduations ('!' by default).
72 ;; The following faces are customizable:
74 ;; - `ruler-mode-default' the ruler default face.
75 ;; - `ruler-mode-fill-column' the face used to highlight the
76 ;; `fill-column' character.
77 ;; - `ruler-mode-comment-column' the face used to highlight the
78 ;; `comment-column' character.
79 ;; - `ruler-mode-goal-column' the face used to highlight the
80 ;; `goal-column' character.
81 ;; - `ruler-mode-current-column' the face used to highlight the
82 ;; `current-column' character.
83 ;; - `ruler-mode-tab-stop' the face used to highlight tab stop
85 ;; - `ruler-mode-margins' the face used to highlight graduations
86 ;; in the `window-margins' areas.
87 ;; - `ruler-mode-fringes' the face used to highlight graduations
88 ;; in the `window-fringes' areas.
89 ;; - `ruler-mode-column-number' the face used to highlight the
90 ;; numbered graduations.
92 ;; `ruler-mode-default' inherits from the built-in `default' face.
93 ;; All `ruler-mode' faces inherit from `ruler-mode-default'.
95 ;; WARNING: To keep ruler graduations aligned on text columns it is
96 ;; important to use the same font family and size for ruler and text
99 ;; You can override the ruler format by defining an appropriate
100 ;; function as the buffer-local value of `ruler-mode-ruler-function'.
104 ;; To automatically display the ruler in specific major modes use:
106 ;; (add-hook '<major-mode>-hook 'ruler-mode)
115 (require 'scroll-bar
)
118 (defgroup ruler-mode nil
119 "Display a ruler in the header line."
123 (defcustom ruler-mode-show-tab-stops nil
124 "*If non-nil the ruler shows tab stop positions.
125 Also allowing to visually change `tab-stop-list' setting using
126 <C-down-mouse-1> and <C-down-mouse-3> on the ruler to respectively add
127 or remove a tab stop. \\[ruler-mode-toggle-show-tab-stops] or
128 <C-down-mouse-2> on the ruler toggles showing/editing of tab stops."
132 ;; IMPORTANT: This function must be defined before the following
133 ;; defcustoms because it is used in their :validate clause.
134 (defun ruler-mode-character-validate (widget)
135 "Ensure WIDGET value is a valid character value."
137 (let ((value (widget-value widget
)))
138 (if (char-valid-p value
)
140 (widget-put widget
:error
141 (format "Invalid character value: %S" value
))
144 (defcustom ruler-mode-fill-column-char
(if (char-displayable-p ?¶
)
147 "*Character used at the `fill-column' location."
150 (character :tag
"Character")
151 (integer :tag
"Integer char value"
152 :validate ruler-mode-character-validate
)))
154 (defcustom ruler-mode-comment-column-char ?\
#
155 "*Character used at the `comment-column' location."
158 (character :tag
"Character")
159 (integer :tag
"Integer char value"
160 :validate ruler-mode-character-validate
)))
162 (defcustom ruler-mode-goal-column-char ?G
163 "*Character used at the `goal-column' location."
166 (character :tag
"Character")
167 (integer :tag
"Integer char value"
168 :validate ruler-mode-character-validate
)))
170 (defcustom ruler-mode-current-column-char
(if (char-displayable-p ?¦
)
173 "*Character used at the `current-column' location."
176 (character :tag
"Character")
177 (integer :tag
"Integer char value"
178 :validate ruler-mode-character-validate
)))
180 (defcustom ruler-mode-tab-stop-char ?\T
181 "*Character used at `tab-stop-list' locations."
184 (character :tag
"Character")
185 (integer :tag
"Integer char value"
186 :validate ruler-mode-character-validate
)))
188 (defcustom ruler-mode-basic-graduation-char ?\.
189 "*Character used for basic graduations."
192 (character :tag
"Character")
193 (integer :tag
"Integer char value"
194 :validate ruler-mode-character-validate
)))
196 (defcustom ruler-mode-inter-graduation-char ?\
!
197 "*Character used for intermediate graduations."
200 (character :tag
"Character")
201 (integer :tag
"Integer char value"
202 :validate ruler-mode-character-validate
)))
204 (defcustom ruler-mode-set-goal-column-ding-flag t
205 "*Non-nil means do `ding' when `goal-column' is set."
209 (defface ruler-mode-default
219 :box
(:color
"grey76"
221 :style released-button
)
223 "Default face used by the ruler."
226 (defface ruler-mode-pad
228 (:inherit ruler-mode-default
232 (:inherit ruler-mode-default
235 "Face used to pad inactive ruler areas."
238 (defface ruler-mode-margins
240 (:inherit ruler-mode-default
243 "Face used to highlight margin areas."
246 (defface ruler-mode-fringes
248 (:inherit ruler-mode-default
251 "Face used to highlight fringes areas."
254 (defface ruler-mode-column-number
256 (:inherit ruler-mode-default
259 "Face used to highlight number graduations."
262 (defface ruler-mode-fill-column
264 (:inherit ruler-mode-default
267 "Face used to highlight the fill column character."
270 (defface ruler-mode-comment-column
272 (:inherit ruler-mode-default
275 "Face used to highlight the comment column character."
278 (defface ruler-mode-goal-column
280 (:inherit ruler-mode-default
283 "Face used to highlight the goal column character."
286 (defface ruler-mode-tab-stop
288 (:inherit ruler-mode-default
289 :foreground
"steelblue"
291 "Face used to highlight tab stop characters."
294 (defface ruler-mode-current-column
296 (:inherit ruler-mode-default
300 "Face used to highlight the `current-column' character."
304 (defsubst ruler-mode-full-window-width
()
305 "Return the full width of the selected window."
306 (let ((edges (window-edges)))
307 (- (nth 2 edges
) (nth 0 edges
))))
309 (defsubst ruler-mode-window-col
(n)
310 "Return a column number relative to the selected window.
311 N is a column number relative to selected frame."
314 (or (car (window-margins)) 0)
315 (fringe-columns 'left
)
316 (scroll-bar-columns 'left
)))
318 (defun ruler-mode-mouse-set-left-margin (start-event)
319 "Set left margin end to the graduation where the mouse pointer is on.
320 START-EVENT is the mouse click event."
322 (let* ((start (event-start start-event
))
323 (end (event-end start-event
))
325 (when (eq start end
) ;; mouse click
326 (save-selected-window
327 (select-window (posn-window start
))
328 (setq col
(- (car (posn-col-row start
)) (car (window-edges))
329 (scroll-bar-columns 'left
))
330 w
(- (ruler-mode-full-window-width)
331 (scroll-bar-columns 'left
)
332 (scroll-bar-columns 'right
)))
333 (when (and (>= col
0) (< col w
))
334 (setq lm
(window-margins)
337 (message "Left margin set to %d (was %d)" col lm
)
338 (set-window-margins nil col rm
))))))
340 (defun ruler-mode-mouse-set-right-margin (start-event)
341 "Set right margin beginning to the graduation where the mouse pointer is on.
342 START-EVENT is the mouse click event."
344 (let* ((start (event-start start-event
))
345 (end (event-end start-event
))
347 (when (eq start end
) ;; mouse click
348 (save-selected-window
349 (select-window (posn-window start
))
350 (setq col
(- (car (posn-col-row start
)) (car (window-edges))
351 (scroll-bar-columns 'left
))
352 w
(- (ruler-mode-full-window-width)
353 (scroll-bar-columns 'left
)
354 (scroll-bar-columns 'right
)))
355 (when (and (>= col
0) (< col w
))
356 (setq lm
(window-margins)
360 (message "Right margin set to %d (was %d)" col rm
)
361 (set-window-margins nil lm col
))))))
363 (defvar ruler-mode-dragged-symbol nil
364 "Column symbol dragged in the ruler.
365 That is `fill-column', `comment-column', `goal-column', or nil when
366 nothing is dragged.")
368 (defun ruler-mode-mouse-grab-any-column (start-event)
369 "Drag a column symbol on the ruler.
370 Start dragging on mouse down event START-EVENT, and update the column
371 symbol value with the current value of the ruler graduation while
372 dragging. See also the variable `ruler-mode-dragged-symbol'."
374 (setq ruler-mode-dragged-symbol nil
)
375 (let* ((start (event-start start-event
))
377 (save-selected-window
378 (select-window (posn-window start
))
379 (setq col
(ruler-mode-window-col (car (posn-col-row start
)))
380 newc
(+ col
(window-hscroll)))
382 (>= col
0) (< col
(window-width))
385 ;; Handle the fill column.
386 ((eq newc fill-column
)
387 (setq oldc fill-column
388 ruler-mode-dragged-symbol
'fill-column
)
391 ;; Handle the comment column.
392 ((eq newc comment-column
)
393 (setq oldc comment-column
394 ruler-mode-dragged-symbol
'comment-column
)
397 ;; Handle the goal column.
398 ;; A. On mouse down on the goal column character on the ruler,
399 ;; update the `goal-column' value while dragging.
400 ;; B. If `goal-column' is nil, set the goal column where the
402 ;; C. On mouse click on the goal column character on the
403 ;; ruler, unset the goal column.
404 ((eq newc goal-column
) ; A. Drag the goal column.
405 (setq oldc goal-column
406 ruler-mode-dragged-symbol
'goal-column
)
409 ((null goal-column
) ; B. Set the goal column.
410 (setq oldc goal-column
412 ;; mouse-2 coming AFTER drag-mouse-2 invokes `ding'. This
413 ;; `ding' flushes the next messages about setting goal
414 ;; column. So here I force fetch the event(mouse-2) and
417 ;; Ding BEFORE `message' is OK.
418 (when ruler-mode-set-goal-column-ding-flag
420 (message "Goal column set to %d (click on %s again to unset it)"
422 (propertize (char-to-string ruler-mode-goal-column-char
)
423 'face
'ruler-mode-goal-column
))
424 nil
) ;; Don't start dragging.
426 (if (eq 'click
(ruler-mode-mouse-drag-any-column-iteration
427 (posn-window start
)))
428 (when (eq 'goal-column ruler-mode-dragged-symbol
)
429 ;; C. Unset the goal column.
431 ;; At end of dragging, report the updated column symbol.
432 (message "%s is set to %d (was %d)"
433 ruler-mode-dragged-symbol
434 (symbol-value ruler-mode-dragged-symbol
)
437 (defun ruler-mode-mouse-drag-any-column-iteration (window)
438 "Update the ruler while dragging the mouse.
439 WINDOW is the window where occurred the last down-mouse event.
440 Return the symbol `drag' if the mouse has been dragged, or `click' if
441 the mouse has been clicked."
445 (while (mouse-movement-p (setq event
(read-event)))
446 (setq drags
(1+ drags
))
447 (when (eq window
(posn-window (event-end event
)))
448 (ruler-mode-mouse-drag-any-column event
)
449 (force-mode-line-update))))
450 (if (and (zerop drags
) (eq 'click
(car (event-modifiers event
))))
454 (defun ruler-mode-mouse-drag-any-column (start-event)
455 "Update the value of the symbol dragged on the ruler.
456 Called on each mouse motion event START-EVENT."
457 (let* ((start (event-start start-event
))
458 (end (event-end start-event
))
460 (save-selected-window
461 (select-window (posn-window start
))
462 (setq col
(ruler-mode-window-col (car (posn-col-row end
)))
463 newc
(+ col
(window-hscroll)))
464 (when (and (>= col
0) (< col
(window-width)))
465 (set ruler-mode-dragged-symbol newc
)))))
467 (defun ruler-mode-mouse-add-tab-stop (start-event)
468 "Add a tab stop to the graduation where the mouse pointer is on.
469 START-EVENT is the mouse click event."
471 (when ruler-mode-show-tab-stops
472 (let* ((start (event-start start-event
))
473 (end (event-end start-event
))
475 (when (eq start end
) ;; mouse click
476 (save-selected-window
477 (select-window (posn-window start
))
478 (setq col
(ruler-mode-window-col (car (posn-col-row start
)))
479 ts
(+ col
(window-hscroll)))
480 (and (>= col
0) (< col
(window-width))
481 (not (member ts tab-stop-list
))
483 (message "Tab stop set to %d" ts
)
484 (setq tab-stop-list
(sort (cons ts tab-stop-list
)
487 (defun ruler-mode-mouse-del-tab-stop (start-event)
488 "Delete tab stop at the graduation where the mouse pointer is on.
489 START-EVENT is the mouse click event."
491 (when ruler-mode-show-tab-stops
492 (let* ((start (event-start start-event
))
493 (end (event-end start-event
))
495 (when (eq start end
) ;; mouse click
496 (save-selected-window
497 (select-window (posn-window start
))
498 (setq col
(ruler-mode-window-col (car (posn-col-row start
)))
499 ts
(+ col
(window-hscroll)))
500 (and (>= col
0) (< col
(window-width))
501 (member ts tab-stop-list
)
503 (message "Tab stop at %d deleted" ts
)
504 (setq tab-stop-list
(delete ts tab-stop-list
)))))))))
506 (defun ruler-mode-toggle-show-tab-stops ()
507 "Toggle showing of tab stops on the ruler."
509 (setq ruler-mode-show-tab-stops
(not ruler-mode-show-tab-stops
))
510 (force-mode-line-update))
512 (defvar ruler-mode-map
513 (let ((km (make-sparse-keymap)))
514 (define-key km
[header-line down-mouse-1
]
516 (define-key km
[header-line down-mouse-3
]
518 (define-key km
[header-line down-mouse-2
]
519 #'ruler-mode-mouse-grab-any-column
)
520 (define-key km
[header-line
(shift down-mouse-1
)]
521 #'ruler-mode-mouse-set-left-margin
)
522 (define-key km
[header-line
(shift down-mouse-3
)]
523 #'ruler-mode-mouse-set-right-margin
)
524 (define-key km
[header-line
(control down-mouse-1
)]
525 #'ruler-mode-mouse-add-tab-stop
)
526 (define-key km
[header-line
(control down-mouse-3
)]
527 #'ruler-mode-mouse-del-tab-stop
)
528 (define-key km
[header-line
(control down-mouse-2
)]
529 #'ruler-mode-toggle-show-tab-stops
)
530 (define-key km
[header-line
(shift mouse-1
)]
532 (define-key km
[header-line
(shift mouse-3
)]
534 (define-key km
[header-line
(control mouse-1
)]
536 (define-key km
[header-line
(control mouse-3
)]
538 (define-key km
[header-line
(control mouse-2
)]
541 "Keymap for ruler minor mode.")
543 (defvar ruler-mode-header-line-format-old nil
544 "Hold previous value of `header-line-format'.")
546 (defvar ruler-mode-ruler-function
'ruler-mode-ruler
547 "Function to call to return ruler header line format.
548 This variable is expected to be made buffer-local by modes.")
550 (defconst ruler-mode-header-line-format
551 '(:eval
(funcall ruler-mode-ruler-function
))
552 "`header-line-format' used in ruler mode.
553 Call `ruler-mode-ruler-function' to compute the ruler value.")
556 (define-minor-mode ruler-mode
557 "Display a ruler in the header line if ARG > 0."
563 ;; When `ruler-mode' is on save previous header line format
564 ;; and install the ruler header line format.
565 (when (and (local-variable-p 'header-line-format
)
566 (not (local-variable-p 'ruler-mode-header-line-format-old
)))
567 (set (make-local-variable 'ruler-mode-header-line-format-old
)
569 (setq header-line-format ruler-mode-header-line-format
)
570 (add-hook 'post-command-hook
'force-mode-line-update nil t
))
571 ;; When `ruler-mode' is off restore previous header line format if
572 ;; the current one is the ruler header line format.
573 (when (eq header-line-format ruler-mode-header-line-format
)
574 (kill-local-variable 'header-line-format
)
575 (when (local-variable-p 'ruler-mode-header-line-format-old
)
576 (setq header-line-format ruler-mode-header-line-format-old
)
577 (kill-local-variable 'ruler-mode-header-line-format-old
)))
578 (remove-hook 'post-command-hook
'force-mode-line-update t
)))
580 ;; Add ruler-mode to the minor mode menu in the mode line
581 (define-key mode-line-mode-menu
[ruler-mode
]
582 `(menu-item "Ruler" ruler-mode
583 :button
(:toggle . ruler-mode
)))
585 (defconst ruler-mode-ruler-help-echo
587 S-mouse-1/3: set L/R margin, \
588 mouse-2: set goal column, \
589 C-mouse-2: show tabs"
590 "Help string shown when mouse is over the ruler.
591 `ruler-mode-show-tab-stops' is nil.")
593 (defconst ruler-mode-ruler-help-echo-when-goal-column
595 S-mouse-1/3: set L/R margin, \
596 C-mouse-2: show tabs"
597 "Help string shown when mouse is over the ruler.
598 `goal-column' is set and `ruler-mode-show-tab-stops' is nil.")
600 (defconst ruler-mode-ruler-help-echo-when-tab-stops
602 C-mouse1/3: set/unset tab, \
603 C-mouse-2: hide tabs"
604 "Help string shown when mouse is over the ruler.
605 `ruler-mode-show-tab-stops' is non-nil.")
607 (defconst ruler-mode-fill-column-help-echo
608 "drag-mouse-2: set fill column"
609 "Help string shown when mouse is on the fill column character.")
611 (defconst ruler-mode-comment-column-help-echo
612 "drag-mouse-2: set comment column"
613 "Help string shown when mouse is on the comment column character.")
615 (defconst ruler-mode-goal-column-help-echo
617 drag-mouse-2: set goal column, \
618 mouse-2: unset goal column"
619 "Help string shown when mouse is on the goal column character.")
621 (defconst ruler-mode-margin-help-echo
623 "Help string shown when mouse is over a margin area.")
625 (defconst ruler-mode-fringe-help-echo
627 "Help string shown when mouse is over a fringe area.")
629 (defsubst ruler-mode-space
(width &rest props
)
630 "Return a single space string of WIDTH times the normal character width.
631 Optional argument PROPS specifies other text properties to apply."
632 (apply 'propertize
" " 'display
(list 'space
:width width
) props
))
634 (defun ruler-mode-ruler ()
635 "Compute and return a header line ruler."
636 (let* ((w (window-width))
641 ;; Setup the scrollbar, fringes, and margins areas.
642 (lf (ruler-mode-space
644 'face
'ruler-mode-fringes
645 'help-echo
(format ruler-mode-fringe-help-echo
646 "Left" (or (car f
) 0))))
647 (rf (ruler-mode-space
649 'face
'ruler-mode-fringes
650 'help-echo
(format ruler-mode-fringe-help-echo
651 "Right" (or (cadr f
) 0))))
652 (lm (ruler-mode-space
654 'face
'ruler-mode-margins
655 'help-echo
(format ruler-mode-margin-help-echo
656 "Left" (or (car m
) 0))))
657 (rm (ruler-mode-space
659 'face
'ruler-mode-margins
660 'help-echo
(format ruler-mode-margin-help-echo
661 "Right" (or (cdr m
) 0))))
662 (sb (ruler-mode-space
664 'face
'ruler-mode-pad
))
665 ;; Remember the scrollbar vertical type.
666 (sbvt (car (window-current-scroll-bars)))
667 ;; Create an "clean" ruler.
670 (make-string w ruler-mode-basic-graduation-char
)
671 'face
'ruler-mode-default
672 'local-map ruler-mode-map
674 (ruler-mode-show-tab-stops
675 ruler-mode-ruler-help-echo-when-tab-stops
)
677 ruler-mode-ruler-help-echo-when-goal-column
)
678 (ruler-mode-ruler-help-echo))))
680 ;; Setup the active area.
684 ;; Show a number graduation.
686 (setq c
(number-to-string (/ j
10))
690 i
(1+ i
) 'face
'ruler-mode-column-number
692 (while (and (> m
0) (>= k
0))
693 (aset ruler k
(aref c
(setq m
(1- m
))))
695 ;; Show an intermediate graduation.
697 (aset ruler i ruler-mode-inter-graduation-char
)))
700 ;; Show the `current-column' marker.
701 ((= j
(current-column))
702 (aset ruler i ruler-mode-current-column-char
)
704 i
(1+ i
) 'face
'ruler-mode-current-column
706 ;; Show the `goal-column' marker.
707 ((and goal-column
(= j goal-column
))
708 (aset ruler i ruler-mode-goal-column-char
)
710 i
(1+ i
) 'face
'ruler-mode-goal-column
713 i
(1+ i
) 'mouse-face
'mode-line-highlight
716 i
(1+ i
) 'help-echo ruler-mode-goal-column-help-echo
718 ;; Show the `comment-column' marker.
719 ((= j comment-column
)
720 (aset ruler i ruler-mode-comment-column-char
)
722 i
(1+ i
) 'face
'ruler-mode-comment-column
725 i
(1+ i
) 'mouse-face
'mode-line-highlight
728 i
(1+ i
) 'help-echo ruler-mode-comment-column-help-echo
730 ;; Show the `fill-column' marker.
732 (aset ruler i ruler-mode-fill-column-char
)
734 i
(1+ i
) 'face
'ruler-mode-fill-column
737 i
(1+ i
) 'mouse-face
'mode-line-highlight
740 i
(1+ i
) 'help-echo ruler-mode-fill-column-help-echo
742 ;; Show the `tab-stop-list' markers.
743 ((and ruler-mode-show-tab-stops
(member j tab-stop-list
))
744 (aset ruler i ruler-mode-tab-stop-char
)
746 i
(1+ i
) 'face
'ruler-mode-tab-stop
750 ;; Return the ruler propertized string. Using list here,
751 ;; instead of concat visually separate the different areas.
752 (if (nth 2 (window-fringes))
753 ;; fringes outside margins.
754 (list "" (and (eq 'left sbvt
) sb
) lf lm
755 ruler rm rf
(and (eq 'right sbvt
) sb
))
756 ;; fringes inside margins.
757 (list "" (and (eq 'left sbvt
) sb
) lm lf
758 ruler rf rm
(and (eq 'right sbvt
) sb
)))))
760 (provide 'ruler-mode
)
763 ;; coding: iso-latin-1
766 ;;; arch-tag: b2f24546-5605-44c4-b67b-c9a4eeba3ee8
767 ;;; ruler-mode.el ends here