Skip to content

Commit

Permalink
local-config.el for machine specific options
Browse files Browse the repository at this point in the history
default disable tabbar-mode

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information
hxw committed Aug 25, 2011
1 parent bcef50e commit 0f1c00e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
abbrev_defs
local-config.el
59 changes: 31 additions & 28 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
load-path))


;; enable or disable some options
;; ------------------------------

(setq *local-tabbar-enabled* nil)

;; override certain of the above options on a machine-by-machine basis
(load "local-config" t)


;; my screen size - so it is easy to change
;; ----------------------------------------

Expand Down Expand Up @@ -179,13 +188,15 @@
;; If there is more than one, they won't work right.
'(default ((t (:stipple nil :background "MistyRose" :foreground "blue4"
:inverse-video nil :box nil :strike-through nil
:overline nil :underline nil :slant normal :weight normal :width normal :height 120))))
:overline nil :underline nil :slant normal
:weight normal :width normal :height 120))))
'(buffers-tab ((t (:foreground "black" :background "Gray80" :size "10" :slant normal))))
'(tabbar-default ((t (:inherit variable-pitch :background "gray75" :foreground "gray10" :height 0.8))))
'(tabbar-selected ((t (:inherit tabbar-default :foreground "blue"
:box (:line-width 1 :color "white" :style pressed-button)))))
'(tabbar-unselected ((t (:inherit tabbar-default :foreground "gray20"
:box (:line-width 1 :color "white" :style released-button))))))

)


Expand Down Expand Up @@ -275,23 +286,24 @@

;; from: http://www.emacswiki.org/emacs/TabBarMode

(require 'tabbar)
(tabbar-mode)

(setq tabbar-buffer-groups-function
(lambda ()
(list "All Buffers")))

(setq tabbar-buffer-list-function
(lambda ()
(remove-if
(lambda(buffer)
(let ((name (buffer-name buffer)))
(or (string-match "\\.html-template-indent-buffer$" name)
(and (find (aref name 0) " *")
(not (string= "*scratch*" name))))))
(buffer-list))))

(when *local-tabbar-enabled*
(require 'tabbar)
(tabbar-mode)

(setq tabbar-buffer-groups-function
(lambda ()
(list "All Buffers")))

(setq tabbar-buffer-list-function
(lambda ()
(remove-if
(lambda(buffer)
(let ((name (buffer-name buffer)))
(or (string-match "\\.html-template-indent-buffer$" name)
(and (find (aref name 0) " *")
(not (string= "*scratch*" name))))))
(buffer-list))))
)

;; w3m
;; ---
Expand Down Expand Up @@ -744,6 +756,7 @@
;; ----------------------------------------------------------------------

(when (load "~/nxhtml/autostart.el" t)
(message "init.el: nXhtml")
(setq mumamo-background-colors nil)
(add-to-list 'auto-mode-alist '("\\.html$" . django-html-mumamo-mode)))

Expand Down Expand Up @@ -1203,13 +1216,3 @@
(message "init.el: Initialisation complete (X11)")
(message "init.el: Initialisation complete (command)")
)
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(default ((t (:stipple nil :background "MistyRose" :foreground "blue4" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :width normal :height 120))))
'(buffers-tab ((t (:foreground "black" :background "Gray80" :size "10" :slant normal))))
'(tabbar-default ((t (:inherit variable-pitch :background "gray75" :foreground "gray10" :height 0.8))))
'(tabbar-selected ((t (:inherit tabbar-default :foreground "blue" :box (:line-width 1 :color "white" :style pressed-button)))))
'(tabbar-unselected ((t (:inherit tabbar-default :foreground "gray20" :box (:line-width 1 :color "white" :style released-button))))))

0 comments on commit 0f1c00e

Please sign in to comment.