aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2020-04-21 09:18:28 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2020-04-21 09:18:28 +0200
commit1f9f5fea511d93cade6cad1e7fd2dbddcc2ab9b0 (patch)
treeb17370f34816b19d210077530d98bf9e24b68eb1
parent05a76476b0efe35ec109401d3f0b9500f6630d2e (diff)
downloaddotfiles-1f9f5fea511d93cade6cad1e7fd2dbddcc2ab9b0.tar.gz
dotfiles-1f9f5fea511d93cade6cad1e7fd2dbddcc2ab9b0.zip
emacs: provide a package header
And update the one from the original init.el file. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
-rw-r--r--.emacs.d/init.el6
-rw-r--r--.emacs.d/init.org40
2 files changed, 41 insertions, 5 deletions
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à <mikisabate@gmail.com>
;; 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à <mikisabate@gmail.com>
+;;
+;; Author: Miquel Sabaté Solà <mikisabate@gmail.com>
+;; 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 <http://www.gnu.org/licenses/>.
+;;
+;;; 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."