   (if (find-file (ido-completing-read "Find recent file: " recentf-list))
       (message "Opening file...")
     (message "Aborting")))
+
+(defun esel/now ()
+  "Insert string for the current time formatted like '[HH:MM]'."
+  (interactive)
+  (insert (format-time-string "[%H:%M] ")))


;; Handy function for reverting all buffers (e.g. when switching git branches)
;; Source: http://www.emacswiki.org/emacs/RevertBuffer#toc2
(defun revert-all-buffers ()
  "Refreshes all open buffers from their respective files."
  (interactive)
  (dolist (buf (buffer-list))


;; Org-mode tables are best without truncation, but prose looks best with.
(global-set-key (kbd "<f1>") 'toggle-truncate-lines)
;; Insert current time
(global-set-key (kbd "<f2>") 'esel/now)

(menu-bar-mode -1)
(tool-bar-mode -1)
