From 92169345ffbb0fd2dca77b82f00ce4697adb76f3 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Sat, 13 Feb 2016 13:45:51 -0500 Subject: [PATCH] update spacemacs/xinitrc --- .spacemacs | 14 ++++++++++++++ .xinitrc | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.spacemacs b/.spacemacs index 44fdb66..3a06390 100644 --- a/.spacemacs +++ b/.spacemacs @@ -256,6 +256,19 @@ BUFFER may be either a buffer or its name (a string)." (select-window-0) ) + (defun org-my-custom-timestamp () + (interactive) + (evil-open-below 0) + (insert (format-time-string "[%D %H:%M]\n"))) + + (defun md-my-custom-timestamp () + (interactive) + (evil-open-below 0) + (insert (format-time-string "###### [%D %H:%M]\n"))) + + (evil-leader/set-key-for-mode 'markdown-mode "," 'md-my-custom-timestamp) + (evil-leader/set-key-for-mode 'org-mode "," 'org-my-custom-timestamp) + (defadvice spacemacs//neotree-key-bindings (after add-custom-keybindings activate) "add keybindings for enter-hide and peek functions" (define-key evil-motion-state-local-map (kbd "RET") 'custom-neotree-enter-hide) @@ -345,6 +358,7 @@ BUFFER may be either a buffer or its name (a string)." ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. + '(org-support-shift-select (quote always)) '(safe-local-variable-values (quote ((eval setenv "GOPATH" "/home/barak/src/agro"))))) (custom-set-faces ;; custom-set-faces was added by Custom. diff --git a/.xinitrc b/.xinitrc index 1d2fc26..798f879 100644 --- a/.xinitrc +++ b/.xinitrc @@ -4,7 +4,7 @@ export PATH=$HOME/bin:$PATH xrdb -merge .Xdefaults & #gnome-settings-daemon & -#xscreensaver -no-splash & +xscreensaver -no-splash & #kupfer --no-splash & rofi -key-run control-space -fuzzy -terminal run_terminal & nm-applet &