richleland / emacs

fork of emacs

.emacs.d config files

Clone this repository (size: 245.8 KB): HTTPS / SSH
$ hg clone http://code.richleland.com/emacs

Changed (Δ825 bytes):

raw changeset »

init.el (21 lines added, 0 lines removed)

Up to file-list init.el:

1
;; set more reasonable window size
2
(defun set-frame-size-according-to-resolution ()
3
  (interactive)
4
  (if window-system
5
  (progn
6
    ;; use 120 char wide window for largeish displays
7
    ;; and smaller 80 column windows for smaller displays
8
    ;; pick whatever numbers make sense for you
9
    (if (> (x-display-pixel-width) 1280)
10
        (add-to-list 'default-frame-alist (cons 'width 120))
11
      (add-to-list 'default-frame-alist (cons 'width 80)))
12
    ;; for the height, subtract a couple hundred pixels
13
    ;; from the screen height (for panels, menubars and
14
    ;; whatnot), then divide by the height of a char to
15
    ;; get the height we want
16
    (add-to-list 'default-frame-alist 
17
                 (cons 'height (/ (- (x-display-pixel-height) 200) (frame-char-height)))))))
18
19
(set-frame-size-according-to-resolution)
20
1
21
;; enable ido-mode
2
22
(require 'ido)
3
23
(ido-mode t)
30
50
(mapc 'yas/load-directory yas/root-directory)
31
51
32
52
(load "~/.emacs.d/plugins/django-mode.el")
53