| commit 9: | 03fbfb437d2e |
| parent 8: | cea7a1e7420b |
| branch: | default |
added code to init.el to automatically assign a more reasonable starting window size
- View Josh's profile
-
Josh's public repos »
- django-invitation
- django-openid-auth
- django-piston
- django-draper
- django-vcs
- textmate-mode
- pyvcs
- django-cumulus
- django-twitter-oauth
- django-syncr
- django-linktag
- emacs
- oh-my-zsh
- django-twitter-backend
- Mercurial for ZSH
- python-twitter
- Adamanteus
- django-twitter
- django-storages
- Django-Piston Presentation
- oauth-python-twitter
- Django-Forerscope
- Send message
7 months ago
Changed (Δ825 bytes):
raw changeset »
init.el (21 lines added, 0 lines removed)
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 |
