summaryrefslogtreecommitdiffstats
path: root/.emacs.d
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/init.el14
-rw-r--r--.emacs.d/site-lisp/oni.el6
-rw-r--r--.emacs.d/snippets/org-mode/heading10
3 files changed, 13 insertions, 17 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index ee23d0d..b99ce68 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -23,6 +23,8 @@
(require 'ext)
(require 'oni)
+(defalias 'dabbrev-expand 'hippie-expand)
+
(autoload 'define-slime-contrib "slime")
(autoload 'gtags-mode "gtags" nil t)
(autoload 'identica-mode "identica-mode" nil t)
@@ -38,9 +40,6 @@
(load (expand-file-name "~/.emacs.d/site-lisp/loaddefs.el"))
-(define-key key-translation-map (kbd "C-j") (kbd "C-l"))
-(define-key key-translation-map (kbd "C-l") (kbd "C-j"))
-
(defalias 'yes-or-no-p 'y-or-n-p)
(defalias 'list-buffers 'ibuffer)
(defalias 'dabbrev-expand 'hippie-expand)
@@ -286,7 +285,6 @@
(setq user-full-name "Tom Willemsen")
(setq user-mail-address "tom@ryuslash.org")
(setq window-combination-resize t)
-(setq yas-prompt-functions '(yas-ido-prompt))
(add-hook 'after-save-hook 'oni:after-save-func t)
(add-hook 'before-save-hook 'oni:before-save-func)
@@ -368,6 +366,9 @@
(add-to-list 'auto-mode-alist '("^PKGBUILD$" . shell-script-mode))
(add-to-list 'auto-mode-alist '("^\\.Xmodmap$" . xmodmap-mode))
+(add-to-list 'compilation-finish-functions
+ 'oni:compilation-finish-function)
+
(add-to-list 'debug-ignored-errors "^Can't shift all lines enough")
(add-to-list 'display-buffer-alist
@@ -401,6 +402,7 @@
(ido-ubiquitous-mode)
(savehist-mode)
(show-paren-mode)
+(display-battery-mode)
(smex-initialize)
(help-at-pt-set-timer)
@@ -409,10 +411,6 @@
(load custom-file)
(load "rudel-loaddefs.el")
-(load (expand-file-name "~/quicklisp/slime-helper.el"))
-
-(load "quick-edit-mode")
-(global-set-key (kbd "C-z") 'quick-edit-mode)
(unless (server-running-p)
(server-start))
diff --git a/.emacs.d/site-lisp/oni.el b/.emacs.d/site-lisp/oni.el
index 286f19b..251dca2 100644
--- a/.emacs.d/site-lisp/oni.el
+++ b/.emacs.d/site-lisp/oni.el
@@ -59,7 +59,7 @@ DOT are intentionally being skipped."
(defvar oni:required-packages
'(graphviz-dot-mode htmlize magit rainbow-delimiters
- rainbow-mode yasnippet markdown-mode flymake
+ rainbow-mode markdown-mode flymake
flymake-cursor pony-mode sauron dispass
expand-region fill-column-indicator
git-auto-commit-mode idomenu magit smex)
@@ -175,7 +175,6 @@ DOT are intentionally being skipped."
(defun oni:html-mode-func ()
"Function for `html-mode-hook'."
- (yas-minor-mode)
(fci-mode))
(defun oni:indent-shift-left (start end &optional count)
@@ -391,7 +390,7 @@ When dealing with braces, add another line and indent that too."
"Function for `org-mode-hook'."
(auto-fill-mode)
(yas-minor-mode)
- (setq-local comment-auto-fill-only-comments nil))
+ (set (make-local-variable 'comment-auto-fill-only-comments) nil))
(defun oni:php-mode-func ()
"Function for `php-mode-hook'."
@@ -413,7 +412,6 @@ length -1. Use the `-' character. WIN is ignored."
(rainbow-delimiters-mode)
(fci-mode)
(pretty-symbols-mode)
- (yas-minor-mode)
(auto-fill-mode))
(defun oni:python-mode-func ()
diff --git a/.emacs.d/snippets/org-mode/heading b/.emacs.d/snippets/org-mode/heading
index 9d5451e..48dca7f 100644
--- a/.emacs.d/snippets/org-mode/heading
+++ b/.emacs.d/snippets/org-mode/heading
@@ -2,8 +2,8 @@
# name: Heading
# key: *
# --
-${1:*} ${2:TODO} $3
-${1:$(make-string (length text) ?\ )} :PROPERTIES:
-${1:$(make-string (length text) ?\ )} :CATEGORY: $4
-${1:$(make-string (length text) ?\ )} :END:
-${1:$(make-string (length text) ?\ )} $0 \ No newline at end of file
+*$1 ${2:TODO} $3
+ ${1:$(make-string (length text) ?\ )} :PROPERTIES:
+ ${1:$(make-string (length text) ?\ )} :CATEGORY: $4
+ ${1:$(make-string (length text) ?\ )} :END:
+ ${1:$(make-string (length text) ?\ )} $0 \ No newline at end of file