dotfiles/user-config/emacs/.emacs.d/init.el

34 lines
1.3 KiB
EmacsLisp

;; (C) Copyright Collin J. Doering 2020
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
;; Even though this is not used, it needs to be here so that package.el
;; doesn't re-add it uncommented
;; (package-initialize)
;;; Code:
(require 'org)
(require 'ob-tangle)
(let* ((filename (concat (file-name-directory load-file-name) "config"))
(config (concat filename ".org"))
(el (concat filename ".el"))
; Temporarily (for this block, specifically org-babel-tangle-file below) turn off
; babel evaluation confirmation, as its triggered for tangle to files that are marked
; executable (new in org 9.6)
(org-confirm-babel-evaluate nil))
(when (file-exists-p config)
(org-babel-load-file config t)))