diff options
author | Julian Teu <julianteu@protonmail.com> | 2018-02-03 00:19:10 +0100 |
---|---|---|
committer | Julian Teu <julianteu@protonmail.com> | 2018-02-03 00:19:10 +0100 |
commit | aef87d31ea8a2e0f95c5f1e5ebb2fa0030dd2907 (patch) | |
tree | 795bb0b3964bdbfd954d6b502ae9ccdf9c44012a | |
parent | c3e88bc1c79e16ff73ce26a275ead5d436d07d5c (diff) |
Added dashboard with fortune and stuff to emacs. Added zone to emacs, and added paren mode
-rw-r--r-- | .emacs | 32 |
1 files changed, 31 insertions, 1 deletions
@@ -91,7 +91,7 @@ (setq c-default-style "k&r" c-basic-offset 4) -(add-hook 'c-mode-common-hook '(lambda () (c-toggle-auto-state 1))) +;;(add-hook 'c-mode-common-hook '(lambda () (c-toggle-auto-state 1))) (add-to-list 'auto-mode-alist '("\\.ino\\'" . c++-mode)) @@ -172,3 +172,33 @@ (global-set-key (kbd "M-p h") 'mc/mark-all-like-this) +(require 'dashboard) +(dashboard-setup-startup-hook) + +(require 'fortune) +(setq fortune-dir "/usr/share/games/fortunes") +(setq fortune-file "/usr/share/games/fortunes/fortunes") + +(defun dashboard-fortune (hej) + (insert "Fortune:\n") + (insert (with-temp-buffer + (shell-command "fortune" t) + (buffer-string))) + ) + + +(add-to-list 'dashboard-item-generators '(custom . dashboard-fortune)) + +(setq dashboard-items '((recents . 5) + (bookmarks . 5) + (custom . 3) + )) + +(require 'zone) +(zone-when-idle 120) + +(show-paren-mode 1) + + + + |