]> git.eshelyaron.com Git - emacs.git/commitdiff
Set scroll bar mode to right if set by X resources.
authorJan Djärv <jan.h.d@swipnet.se>
Sat, 30 Dec 2006 15:23:38 +0000 (15:23 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Sat, 30 Dec 2006 15:23:38 +0000 (15:23 +0000)
lisp/term/x-win.el

index e97d3752704eba57b2104570d3517fd073c6d33c..548cae9321c6ee1403c4337b4abb6e73fe1f3bb5 100644 (file)
@@ -2484,6 +2484,10 @@ order until succeed.")
   (if res-selection-timeout
       (setq x-selection-timeout (string-to-number res-selection-timeout))))
 
+;; Set scroll bar mode to right if set by X resources. Default is left.
+(if (equal (x-get-resource "verticalScrollBars" "ScrollBars") "right")
+    (customize-set-variable 'scroll-bar-mode 'right))
+
 (defun x-win-suspend-error ()
   (error "Suspending an Emacs running under X makes no sense"))
 (add-hook 'suspend-hook 'x-win-suspend-error)