Move built-in package configurations to the Org config

This commit is contained in:
Gergely Polonkai 2018-07-29 20:29:56 +02:00
parent 77236cbea7
commit 50707c11a5
2 changed files with 59 additions and 41 deletions

View File

@ -31,14 +31,11 @@ I set it up early so I can use it in ~use-package~ calls immediately.
#+END_SRC #+END_SRC
* Set personal information * Set personal information
** Who am I? Where am I? ** Who am I?
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq user-full-name "Gergely Polonkai" (setq user-full-name "Gergely Polonkai"
user-mail-address "gergely@polonkai.eu" user-mail-address "gergely@polonkai.eu")
calendar-latitude 47.4
calendar-longitude 19.0
calendar-location-name "Budapest, Hungary")
#+END_SRC #+END_SRC
* Add ~lisp/~ to ~load-path~ * Add ~lisp/~ to ~load-path~
@ -637,6 +634,63 @@ Because we can.
(global-prettify-symbols-mode t) (global-prettify-symbols-mode t)
#+END_SRC #+END_SRC
* Load some built-in libraries
** ~thingatpt~
#+BEGIN_SRC emacs-lisp
(use-package thingatpt
:ensure nil)
#+END_SRC
** Calendar
#+BEGIN_SRC emacs-lisp
(use-package calendar
:ensure nil
:init
(setq calendar-week-start-day 1
calendar-latitude 47.4
calendar-longitude 19.0
calendar-location-name "Budapest, Hungary"
calendar-time-zone 60
calendar-standard-time-zone-name "CET"
calendar-daylight-time-zone-name "CEST"))
#+END_SRC
** nXML
#+BEGIN_SRC emacs-lisp
(use-package nxml-mode
:ensure nil
:config
(setq nxml-attribute-indent 4
nxml-child-indent 2
nxml-outline-child-indent 4))
#+END_SRC
** ~recentf~
#+BEGIN_SRC emacs-lisp
(use-package recentf
:ensure nil
:config
(run-at-time nil (* 5 60) 'recentf-save-list)
(add-to-list 'recentf-exclude (concat user-emacs-directory "elpa")))
#+END_SRC
** ~files~
#+BEGIN_SRC emacs-lisp
(use-package files
:ensure nil
:config
(setq backup-directory-alist
`((".*" . ,temporary-file-directory)))
(setq auto-save-file-name-transforms
`((".*" ,temporary-file-directory t))))
#+END_SRC
* ~use-package~ packages * ~use-package~ packages
** Highlight the current line ** Highlight the current line

36
init.el
View File

@ -38,10 +38,6 @@
(regexp-quote "/com.termux/") (regexp-quote "/com.termux/")
(expand-file-name "~"))) (expand-file-name "~")))
;; Load some custom libraries
(use-package thingatpt
:ensure nil)
(use-package helm (use-package helm
:init :init
(require 'helm-config) (require 'helm-config)
@ -601,17 +597,6 @@
(:map gpolonkai/pers-map (:map gpolonkai/pers-map
("r" . org-random-todo))) ("r" . org-random-todo)))
(use-package calendar
:ensure nil
:init
(setq calendar-week-start-day 1
calendar-latitude 47.4
calendar-longitude 19.0
calendar-location-name "Budapest, Hungary"
calendar-time-zone 60
calendar-standard-time-zone-name "CET"
calendar-daylight-time-zone-name "CEST"))
(use-package yasnippet (use-package yasnippet
:demand :demand
:config :config
@ -740,13 +725,6 @@ INFO plist."
(use-package cheatsheet) (use-package cheatsheet)
(use-package nxml-mode
:ensure nil
:config
(setq nxml-attribute-indent 4
nxml-child-indent 2
nxml-outline-child-indent 4))
(use-package savehist (use-package savehist
:config :config
(savehist-mode 1)) (savehist-mode 1))
@ -811,12 +789,6 @@ INFO plist."
:config :config
(global-auto-highlight-symbol-mode t)) (global-auto-highlight-symbol-mode t))
(use-package recentf
:ensure nil
:config
(run-at-time nil (* 5 60) 'recentf-save-list)
(add-to-list 'recentf-exclude (concat user-emacs-directory "elpa")))
(use-package auto-package-update (use-package auto-package-update
:config :config
(setq auto-package-update-interval 7 (setq auto-package-update-interval 7
@ -856,14 +828,6 @@ INFO plist."
(use-package gitlab) (use-package gitlab)
(use-package files
:ensure nil
:config
(setq backup-directory-alist
`((".*" . ,temporary-file-directory)))
(setq auto-save-file-name-transforms
`((".*" ,temporary-file-directory t))))
(use-package helm-c-yasnippet (use-package helm-c-yasnippet
:demand t :demand t
:config :config