From b3cc13d342ab2fa306e5c6ef3e5d458734023006 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 24 Aug 2015 08:21:44 +0200 Subject: [PATCH] Minor fixups for zim and init --- init.el | 13 +++++++------ zim.el | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index 80ebede..a3a8103 100644 --- a/init.el +++ b/init.el @@ -15,6 +15,12 @@ ("1e7e097ec8cb1f8c3a912d7e1e0331caeed49fef6cff220be63bd2a6ba4cc365" "fc5fcb6f1f1c1bc01305694c59a1a861b008c534cae8d0e48e4d5e81ad718bc6" default))) '(ediff-merge-split-window-function (quote split-window-horizontally)) '(ediff-split-window-function (quote split-window-vertically)) + '(fiplr-ignored-globs + (quote + ((directories + (".git" ".svn" ".hg" ".bzr")) + (files + (".#*" "*.so" "*~"))))) '(foreground-color "#5c5cff") '(global-hl-line-mode t) '(global-whitespace-mode t) @@ -40,12 +46,6 @@ '(sgml-basic-offset 4) '(show-trailing-whitespace t) '(tab-width 4) - '(fiplr-ignored-globs - (quote - ((directories - (".git" ".svn" ".hg" ".bzr")) - (files - (".#*" "*.so" "*~"))))) '(magit-auto-revert-mode nil) '(magit-last-seen-setup-instructions "1.4.0") '(jekyll-directory "~/Projektek/jekyll/gergely.polonkai.eu")) @@ -116,6 +116,7 @@ (local-set-key (kbd "C-c o") 'ff-find-other-file))) (global-set-key (kbd "M-") 'move-line-up) (global-set-key (kbd "M-") 'move-line-down) +;; Some terminals don’t interpret Alt-Up/Down as M-. (global-set-key (kbd "ESC ") 'move-line-up) (global-set-key (kbd "ESC ") 'move-line-down) diff --git a/zim.el b/zim.el index 6e53ae9..d4f422c 100644 --- a/zim.el +++ b/zim.el @@ -3,7 +3,7 @@ (insert (format-time-string "%Y-%m-%dT%H:%M:%S%z")) (forward-char -2) (insert ":") - (forward-char 2))) + (buffer-string))) (defun insert-zim-timestamp () (interactive)