From 1f9f5fea511d93cade6cad1e7fd2dbddcc2ab9b0 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 21 Apr 2020 09:18:28 +0200 Subject: emacs: provide a package header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And update the one from the original init.el file. Signed-off-by: Miquel Sabaté Solà --- .emacs.d/init.el | 6 +++--- .emacs.d/init.org | 40 ++++++++++++++++++++++++++++++++++++++-- 2 files changed, 41 insertions(+), 5 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 635ccce..db518d0 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -4,9 +4,9 @@ ;; ;; Author: Miquel Sabaté Solà ;; Version: 0.1 -;; Package-Requires: ((emacs "25.1")) -;; Keywords: local, maint, mail, tools, vc -;; URL: https://github.com/mssola/dotfiles/.emacs.d/init.el +;; Package-Requires: ((emacs "25.3")) +;; Keywords: convenience, extensions, files, frames, mail, matching, terminals, tools, vc, wp +;; URL: https://github.com/mssola/dotfiles ;; ;; This file is not part of GNU Emacs. ;; diff --git a/.emacs.d/init.org b/.emacs.d/init.org index b197af0..5fc5b0f 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -41,12 +41,48 @@ cloning: git update-index --assume-unchanged emacs/init.el #+END_SRC -Moreover, in order to avoid manually tangling and compiling the =init.org= file -on each change, the following function is provided: +From now on our code will be tangled, meaning that it will go into the final =init.el= file. For starters, let's have a good header: #+BEGIN_SRC elisp ;;; init.el -*- lexical-binding: t; -*- +;; +;; Copyright (C) 2016-2020 Miquel Sabaté Solà +;; +;; Author: Miquel Sabaté Solà +;; Version: 0.1 +;; Package-Requires: ((emacs "25.3")) +;; Keywords: convenience, extensions, files, frames, mail, matching, terminals, tools, vc, wp +;; URL: https://github.com/mssola/dotfiles +;; +;; This file is not part of GNU Emacs. +;; +;; 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 . +;; +;;; Commentary: +;; +;; This file has been autogenerated by `org-mode', by tangling what I had in my +;; init.org. +;; +;; NOTE DO NOT MODIFY THIS FILE. All changes should go into init.org. + +;;; Code: +#+END_SRC +Moreover, in order to avoid manually tangling and compiling the =init.org= file +on each change, the following function is provided: + +#+BEGIN_SRC elisp (defun tangle-init () "If the current buffer is 'init.org' the code-blocks are tangled, and the tangled file is compiled. Morever, an init.html is generated." -- cgit v1.2.3