Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 179 lines (144 sloc) 5.639 kB
164aad8 @davorb added file
authored
1 (add-to-list 'load-path "~/.emacs.d/")
46738ec @davorb added a bunch of stuff
authored
2 ;windmove
3 ;(require 'framemove)
4 ;(framemove-default-keybindings) ;; default prefix is Meta
164aad8 @davorb added file
authored
5 ;;didn't work
6 (custom-set-variables
46738ec @davorb added a bunch of stuff
authored
7 (menu-bar-mode)
8 ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
9 ;; Your init file should contain only one such instance.
164aad8 @davorb added file
authored
10 '(case-fold-search t)
11 '(current-language-environment "Latin-1")
12 '(default-input-method "latin-1-prefix")
13 '(erc-log-insert-log-on-open t)
14 '(erc-log-write-after-send t)
15 '(erc-modules (quote (autojoin button completion fill irccontrols log match menu netsplit noncommands readonly ring scrolltobottom smiley sound stamp track)))
16 '(erc-paranoid t)
17 '(erc-server-reconnect-attempts 3)
18 '(global-font-lock-mode t nil (font-lock))
19 '(inhibit-startup-screen t)
20 '(tool-bar-mode nil nil (tool-bar)))
21 (custom-set-faces
46738ec @davorb added a bunch of stuff
authored
22 ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
23 ;; Your init file should contain only one such instance.
164aad8 @davorb added file
authored
24 )
25
26 ;; ANSI shell
27 (autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t)
28 (add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
29
30 ;; ibuffer
31 (require 'ibuffer)
32
33 ;; Color-themes
46738ec @davorb added a bunch of stuff
authored
34 ;(require 'color-theme-autoload "color-theme-autoloads")
fe496a0 @davorb Added init for color-themes
authored
35 (require 'color-theme)
36 (color-theme-initialize)
46738ec @davorb added a bunch of stuff
authored
37 ;(color-theme-tty)
38 ;(color-theme-classic)
76a7a10 @davorb changed theme to scintilla
authored
39 ;;arjen for consoles
40 ;;scintilla for windowed
a677d65 @davorb Added color-theme-init and merged.
authored
41 (color-theme-initialize)
5c5ff09 @davorb Switched back to right colour
authored
42 (color-theme-scintilla)
43 ;(color-theme-arjen)
164aad8 @davorb added file
authored
44 ;; Lethe, Linh, Resolve, Robin Hood, TTY Dark
45
46 ;; gnus gmail imap info
47
48 (setq user-mail-address "davor@davor.se")
49 (setq user-full-name "Davor")
50 (load-library "smtpmail")
51 (load-library "nnimap")
52 (load-library "starttls")
53 (setq gnus-select-method '(nnimap "imap.gmail.com"
46738ec @davorb added a bunch of stuff
authored
54 (nnimap-address "imap.gmail.com")
55 (nnimap-server-port 993)
56 (nnimap-authinfo-file "~/.authinfo")
57 (nnimap-stream ssl)))
164aad8 @davorb added file
authored
58
59 (setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
60 smtpmail-smtp-server "smtp.gmail.com"
61 smtpmail-default-smtp-server "smtp.gmail.com"
62 send-mail-function 'smtpmail-send-it
63 message-send-mail-function 'smtpmail-send-it
64 smtpmail-smtp-service 587
65 smtpmail-auth-credentials '(("smtp.gmail.com"
46738ec @davorb added a bunch of stuff
authored
66 587
67 "davor@davor.se"
68 )))
164aad8 @davorb added file
authored
69 (add-hook 'gnus-topic-mode-hook 'gnus-topic-mode)
70 ;;
71 (put 'upcase-region 'disabled nil)
72
73
74 ;; F12 invokes ibuffer
75 (setq ibuffer-shrink-to-minimum-size t)
76 (setq ibuffer-always-show-last-buffer nil)
77 (setq ibuffer-sorting-mode 'recency)
78 (setq ibuffer-use-header-line t)
79 (global-set-key [(f12)] 'ibuffer)
80
81
82 ;; F11 switches to most recently used buffer and
83 ;; shift+F11 selects the buffer that was selected
84 ;; before
85 (when (require 'bubble-buffer nil t)
86 (global-set-key [f11] 'bubble-buffer-next)
87 (global-set-key [(shift f11)] 'bubble-buffer-previous))
88 (setq bubble-buffer-omit-regexp "\\(^ .+$\\|\\*Messages\\*\\|*compilation\\*\\|\\*.+output\\*$\\|\\*TeX Help\\*$\\|\\*vc-diff\\*\\|\\*Occur\\*\\|\\*grep\\*\\|\\*cvs-diff\\*\\)")
89
90 ;; ical-importer
91 ;; Get calendar info from google calendar into planner.
46738ec @davorb added a bunch of stuff
authored
92 ;(require 'planner-ical-import)
93 ;; (setq planner-ical-external-calendars
94 ;; '("http://www.google.com/calendar/ical/davorb%40gmail.com/private-1629fcb0d5c1292a4965dc0593c3f3be/basic.ics"))
164aad8 @davorb added file
authored
95
46738ec @davorb added a bunch of stuff
authored
96 ;;disable backup
164aad8 @davorb added file
authored
97 (setq backup-inhibited t)
46738ec @davorb added a bunch of stuff
authored
98 ;;disable auto save
164aad8 @davorb added file
authored
99 (setq auto-save-default nil)
100
101 ;;window
102 (when (fboundp 'windmove-default-keybindings)
103 (windmove-default-keybindings 'meta))
104
105 ;; git gist support
106 (require 'gist)
107
108
109 ;; window-numbering-mode
110 ;; http://nschum.de/src/emacs/window-numbering-mode/
111 (require 'window-numbering)
46738ec @davorb added a bunch of stuff
authored
112 (window-numbering-mode 1)
113
114 ;; enter the debugger each time an error is found
115 (setq debug-on-error t)
116
117 ;; Preserve hard links to the file you’re editing (this is especially important if you edit system files).
118 (setq backup-by-copying-when-linked t)
119
120 ;; Preserve the owner and group of the file you’re editing (this is especially important if you edit files as root).
121 (setq backup-by-copying-when-mismatch t)
122
123 ;;Always indent using spaces, never tabs (See NoTabs)
124 (setq-default indent-tabs-mode nil)
125
126 ;;Include current buffer name in the title bar
127 (setq frame-title-format "%b - emacs")
128
129 ;;Emacs is a text editor, make sure your text files end in a newline
130 ;;this will make emacs ask each time it's needed
131 (setq require-final-newline 'query)
132
133 ;;Play nice with other version control users
134 (setq vc-initial-comment t
135 vc-diff-switches diff-switches)
136
137 ;;Never byte-compile your InitFile by hand again
138 (defun autocompile nil
139 "compile itself if ~/.emacs"
140 (interactive)
141 (require 'bytecomp)
142 (if (string= (buffer-file-name) (expand-file-name (concat default-directory ".emacs")))
143 (byte-compile-file (buffer-file-name))))
144 (add-hook 'after-save-hook 'autocompile)
145
146
147 ;;A fun startup message, somewhat reminiscent of “The Matrix: Reloaded”
148
149 (defconst animate-n-steps 3)
150 (defun emacs-reloaded ()
151 (animate-string (concat ";; Initialization successful, welcome to "
152 (substring (emacs-version) 0 16)
153 ".")
154 0 0)
155 (newline-and-indent) (newline-and-indent))
156
18d57fb @davorb removed erc
authored
157 (add-hook 'after-init-hook 'emacs-reloaded)
784eee0 @davorb added icicles
authored
158
159 ;; icicles
1f3e8f6 @davorb Added f9.
authored
160 ;(require 'icicles)
161 ;(icy-mode 1)
9d0ca25 @davorb Added binding for M-- to M-/
authored
162
163 ;; let M-- be the same key as M-/
164 (define-key key-translation-map (kbd "M--") (kbd "M-/"))
5beb0fb @davorb added doremi
authored
165
a677d65 @davorb Added color-theme-init and merged.
authored
166
5beb0fb @davorb added doremi
authored
167 ;;doremi
168 ;;window resizing
169 (require 'doremi)
170 (global-set-key (kbd "S-C-<left>") 'shrink-window-horizontally)
171 (global-set-key (kbd "S-C-<right>") 'enlarge-window-horizontally)
172 (global-set-key (kbd "S-C-<down>") 'shrink-window)
173 (global-set-key (kbd "S-C-<up>") 'enlarge-window)
a677d65 @davorb Added color-theme-init and merged.
authored
174
1f3e8f6 @davorb Added f9.
authored
175 ;; bind F9 to compile
176 ;(add-hook 'compilation-mode-hook 'my-compilation-hook)
177 (global-set-key [f9] 'compile)
a677d65 @davorb Added color-theme-init and merged.
authored
178
Something went wrong with that request. Please try again.