add some stuff for org-capture, move disabling custom-variables
This commit is contained in:
parent
bf39427e03
commit
4ffd8f0d0c
|
@ -1,6 +1,10 @@
|
|||
;; Essential stuff to load.
|
||||
;; This includes starting the package manager, setting the theme etc.
|
||||
|
||||
;; Disable custom adding stuff to init.el by making it add stuff to a file in /tmp instead.
|
||||
;; Thanks Christopher Wellons! (first comment at https://irreal.org/blog/?p=3765)
|
||||
(setq custom-file (make-temp-file "emacs-custom"))
|
||||
|
||||
;; call package-initialize manually, disable automatic initialization:
|
||||
(setq package-enable-at-startup nil)
|
||||
|
||||
|
|
16
init.el
16
init.el
|
@ -62,19 +62,3 @@
|
|||
|
||||
;; (setq geiser-active-implementations '(mit))
|
||||
;; (setq geiser-active-implementations '(chez))
|
||||
|
||||
|
||||
|
||||
(custom-set-variables
|
||||
;; custom-set-variables was added by Custom.
|
||||
;; 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.
|
||||
'(package-selected-packages
|
||||
'(selectrum use-package undo-tree swiper slime rust-mode paredit nasm-mode multiple-cursors move-text magit helm haskell-mode god-mode go-mode geiser-mit geiser-guile geiser-chicken geiser-chez frames-only-mode exwm expand-region elpher dumb-jump disk-usage disaster dashboard basic-theme avy autothemer auto-package-update)))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; 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.
|
||||
)
|
||||
|
|
13
packages.el
13
packages.el
|
@ -128,4 +128,17 @@
|
|||
(use-package elpher
|
||||
:ensure t)
|
||||
|
||||
(use-package org
|
||||
:ensure t
|
||||
:config
|
||||
;;; org-capture
|
||||
;; Default location for org-capture is ~/org/notes.org
|
||||
(setq org-default-notes-file (concat org-directory "/notes.org"))
|
||||
(setq org-capture-templates
|
||||
'(("t" "Task" entry (file+headline "~/org/tasks.org" "Tasks")
|
||||
"* TODO %?\n %i\n %a")
|
||||
("j" "Journal" entry (file+datetree "~/org/journal.org")
|
||||
"* %?\nEntered on %U\n %i\n %a")))
|
||||
(global-set-key (kbd "C-c o") 'org-capture))
|
||||
|
||||
(provide 'packages)
|
||||
|
|
10
tweaks.el
10
tweaks.el
|
@ -62,12 +62,6 @@
|
|||
(setq-default fill-column 80)
|
||||
(add-hook 'text-mode-hook 'turn-on-auto-fill)
|
||||
|
||||
;; I don't remember what this does, but it's probably important.
|
||||
(put 'downcase-region 'disabled nil)
|
||||
|
||||
;; Line numbers
|
||||
(global-linum-mode)
|
||||
|
||||
;; Ask before closing Emacs
|
||||
(setq confirm-kill-emacs 'y-or-n-p)
|
||||
|
||||
|
@ -76,7 +70,3 @@
|
|||
|
||||
;; delete trailing whitespace before saving
|
||||
(add-hook 'before-save-hook 'delete-trailing-whitespace)
|
||||
|
||||
;; Disable custom adding stuff to init.el by making it add stuff to a file in /tmp instead.
|
||||
;; Thanks Christopher Wellons! (first comment at https://irreal.org/blog/?p=3765)
|
||||
(setq custom-file (make-temp-file "emacs-custom"))
|
||||
|
|
Loading…
Reference in New Issue