瀏覽代碼

Added date-to-point macro

Simon Watson 3 年之前
父節點
當前提交
4e281df908
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      emacs/.emacs-all

+ 4 - 2
emacs/.emacs-all

@@ -128,13 +128,16 @@
   (interactive)
   (load-file (file-truename "~/.emacs")))
 
-;; Enable diff-hl mode
+;; Keybinds/macros
 (global-set-key (kbd "C-c e") 'diff-hl-mode)
 (global-set-key (kbd "C-c d") 'dimmer-mode)
 (global-set-key (kbd "C-c s") 'sublimity-mode)
 (global-set-key (kbd "C-c f") 'focus-mode)
 (global-set-key (kbd "C-c r") 'reload-dot-emacs)
 
+(fset 'date-to-point
+   (kmacro-lambda-form [?\C-u ?\M-! ?d ?a ?t ?e return] 0 "%d"))
+
 ;;; Erc config
 (setq erc-nick "speskk")
 
@@ -176,7 +179,6 @@
       (load-theme 'nano t)
       (nano-dark)))
 
-
 ;; Load for Linux
 
 ;; Load for Linux Term