Bladeren bron

Added date-to-point macro

Simon Watson 3 jaren geleden
bovenliggende
commit
4e281df908
1 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  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