From 1e84d8bee4615c6ba54119c1c18d1c9b5f437fb1 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Thu, 6 Dec 2012 13:04:29 +0100 Subject: Change prompts for jabber This way all text is nicely alligned --- .emacs.d/init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.emacs.d/init.el') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 3763c4f..40bd732 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -252,8 +252,8 @@ (setq jabber-chat-buffer-format "*jabber:%n*") (setq jabber-chat-buffer-show-avatar nil) (setq jabber-chat-fill-long-lines nil) -(setq jabber-chat-foreign-prompt-format "%t < ") -(setq jabber-chat-local-prompt-format "%t > ") +(setq jabber-chat-foreign-prompt-format "%t <\n") +(setq jabber-chat-local-prompt-format "%t >\n") (setq jabber-chatstates-confirm nil) (setq jabber-history-dir "~/.emacs.d/jabber") (setq jabber-roster-show-bindings nil) -- cgit v1.2.3-54-g00ecf From 614fcffbb7cc3d04d3ad7f4d2e0da86e452fdec2 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Thu, 6 Dec 2012 22:40:43 +0100 Subject: Send jabber message as appt reminders --- .emacs.d/init.el | 1 + .emacs.d/site-lisp/oni.el | 8 ++++++++ .emacs.d/site-lisp/org-init.el | 2 ++ 3 files changed, 11 insertions(+) (limited to '.emacs.d/init.el') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 40bd732..e62a2b0 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -140,6 +140,7 @@ (setq-default tab-width 4) (setq-default truncate-lines t) +(setq appt-disp-window-function #'oni:appt-display-window-and-jabber) (setq appt-display-diary nil) (setq auto-mode-case-fold nil) (setq auto-save-file-name-transforms diff --git a/.emacs.d/site-lisp/oni.el b/.emacs.d/site-lisp/oni.el index 5b2cf65..f636587 100644 --- a/.emacs.d/site-lisp/oni.el +++ b/.emacs.d/site-lisp/oni.el @@ -25,6 +25,7 @@ ;;; Code: (autoload 'notifications-notify "notifications") +(autoload 'jabber-send-message "jabber-chat") (defmacro oni:define-mailbox (name email &optional signature longname) "Define a mailbox function for mailbox NAME with address EMAIL. @@ -72,6 +73,13 @@ DOT are intentionally being skipped." (shell-command (concat "make -C " dom-dir " TAGS >/dev/null 2>&1"))))) +(defun oni:appt-display-window-and-jabber (min-to-app new-time appt-msg) + "Send a message to my phone jabber account." + (jabber-send-message (car jabber-connections) "phone@ryuslash.org" + nil (format "%s%s (in %s minutes)" + new-time appt-msg min-to-app) nil) + (appt-disp-window min-to-app new-time appt-msg)) + (defun oni:before-save-func () "Function for `before-save-hook'." (if (eq major-mode 'html-mode) diff --git a/.emacs.d/site-lisp/org-init.el b/.emacs.d/site-lisp/org-init.el index 3bacaad..793b453 100644 --- a/.emacs.d/site-lisp/org-init.el +++ b/.emacs.d/site-lisp/org-init.el @@ -93,6 +93,8 @@ (setq org-use-fast-todo-selection t) (setq org-use-property-inheritance '("slug")) +(add-hook 'org-agenda-mode-hook 'org-agenda-to-appt) + (add-to-list 'org-modules 'habit) (org-indent-mode t) -- cgit v1.2.3-54-g00ecf From 757a5fab184e8402cb41117da43439c877f33e8c Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 11 Dec 2012 01:44:49 +0100 Subject: Add the external yoshi-theme path to theme path --- .emacs.d/init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.emacs.d/init.el') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index e62a2b0..3e18c11 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -20,7 +20,10 @@ (let ((loaddefs (concat directory "/loaddefs.el"))) (when (file-exists-p loaddefs) (load loaddefs)))) - '("~/var/src/emacs/dispass.el" "~/var/src/emacs/mode-icons"))) + '("~/var/src/emacs/dispass.el" "~/var/src/emacs/mode-icons")) + (mapc #'(lambda (dir) + (add-to-list 'custom-theme-load-path dir)) + '("~/var/src/emacs/yoshi-theme"))) (require 'geiser-install) (require 'iso-transl) -- cgit v1.2.3-54-g00ecf From 0195a2c07cca4291b49b3ae6455b914917c4e0c6 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 11 Dec 2012 01:46:16 +0100 Subject: Emacs: Simplify window management keys Since `C-1..9' do the same as `M-1..9' and I never use the Meta ones, I seem to have a few keybindings available to me for such things as this. Now I just need to start using them... --- .emacs.d/init.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.emacs.d/init.el') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 3e18c11..3595742 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -363,6 +363,11 @@ (global-set-key (kbd "M-4") 'split-window-horizontally) (global-set-key (kbd "M-n") 'idomenu) (global-set-key (kbd "\"") 'oni:self-insert-dwim) +(global-set-key (kbd "M-o") 'other-window) +(global-set-key (kbd "M-1") 'delete-other-windows) +(global-set-key (kbd "M-2") 'split-window-below) +(global-set-key (kbd "M-3") 'split-window-right) +(global-set-key (kbd "M-0") 'delete-window) (if (daemonp) (global-set-key "\C-x\C-c" 'oni:close-client-window)) -- cgit v1.2.3-54-g00ecf From 58dc871d0b99c7b99c7605418e27b628ecd5c83b Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Fri, 14 Dec 2012 00:16:57 +0100 Subject: Add type-break settings --- .emacs.d/init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.emacs.d/init.el') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 3595742..61f14d7 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -262,7 +262,7 @@ (setq jabber-history-dir "~/.emacs.d/jabber") (setq jabber-roster-show-bindings nil) (setq jit-lock-defer-time 0.2) -(setq magit-repo-dirs '("~/var/src/")) +(setq magit-repo-dirs '("~/projects/" "~/var/src/")) (setq message-log-max 1000) (setq message-send-mail-function 'message-send-mail-with-sendmail) (setq message-sendmail-extra-arguments '("-a" "ryuslash")) @@ -289,6 +289,9 @@ (setq split-height-threshold 40) (setq time-stamp-active t) (setq time-stamp-format "%04y-%02m-%02d %02H:%02M:%02S (%u)") +(setq type-break-good-rest-interval (* 60 10)) +(setq type-break-interval (* 60 50)) +(setq type-break-keystroke-threshold '(nil . nil)) (setq uniquify-buffer-name-style 'post-forward) (setq use-dialog-box nil) (setq user-full-name "Tom Willemsen") -- cgit v1.2.3-54-g00ecf