Browse Source

Added a new template for general scheme (kawa comes to mind); you'll see this

in both .emacs and .emacs.d/templates/scheme-template.scm
Also since the rkd-conf project now expects your config to diverge projects
are now handeled per host with the possibility to still pull from the generic
(although this is not clean); still looking into a way to diff between diverged git projects
One way is to simply keep an updated copy of the rkd-conf generic so you can diff your
diverged config against it like so:
   diff ~/path/to/you/conf/dir/target_diff_file path/to/rkd-conf/generic/target_diff_file
..you could make this a little nicer by writting a little script that does:
   cdiff <file> => diff ~/path/to/you/conf/dir/<file> path/to/rkd-conf/generic/<file>
where cdiff is the name of the script in this case. Sorry for the long commit message.
master
Collin J. Doering 10 years ago
committed by Collin J. Doering
parent
commit
45a536ed64
7 changed files with 123 additions and 0 deletions
  1. +1
    -0
      .emacs
  2. +23
    -0
      .emacs.d/templates/c-template.c
  3. +19
    -0
      .emacs.d/templates/haskell-template.hs
  4. +19
    -0
      .emacs.d/templates/python-template.py
  5. +21
    -0
      .emacs.d/templates/racket-template.rkt
  6. +19
    -0
      .emacs.d/templates/scheme-template.scm
  7. +21
    -0
      .emacs.d/templates/shell-template.sh

+ 1
- 0
.emacs View File

@ -251,6 +251,7 @@
("\\.\(cc\|cpp\)$" . ["cpp-template.c" auto-update-generic-template])
("\\.sh$" . ["shell-template.sh" auto-update-generic-template])
("\\.rkt$" . ["racket-template.rkt" auto-update-generic-template])
("\\.scm$" . ["scheme-template.scm" auto-update-generic-template])
("\\.hs$" . ["haskell-template.rkt" auto-update-generic-template])
("\\.py$" . ["python-template.py" auto-update-generic-template])))
(setq auto-insert 'other)


+ 23
- 0
.emacs.d/templates/c-template.c View File

@ -0,0 +1,23 @@
/**
* (C) Copyright Collin Doering @!@YEAR@!@
*
* 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/>.
*/
/**
* File: @!@FILE@!@
* Author: Collin J. Doering
* Date: @!@DATE@!@
*/

+ 19
- 0
.emacs.d/templates/haskell-template.hs View File

@ -0,0 +1,19 @@
-- (C) Copyright Collin Doering @!@YEAR@!@
--
-- 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/>.
-- File: @!@FILE@!@
-- Author: Collin J. Doering <rekahsoft@gmail.com>
-- Date: @!@DATE@!@

+ 19
- 0
.emacs.d/templates/python-template.py View File

@ -0,0 +1,19 @@
# (C) Copyright Collin Doering @!@YEAR@!@
#
# 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/>.
# File: @!@FILE@!@
# Author: Collin J. Doering <rekahsoft@gmail.com>
# Date: @!@DATE@!@

+ 21
- 0
.emacs.d/templates/racket-template.rkt View File

@ -0,0 +1,21 @@
#lang racket
;; (C) Copyright Collin Doering @!@YEAR@!@
;;
;; 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/>.
;; File: @!@FILE@!@
;; Author: Collin J. Doering <rekahsoft@gmail.com>
;; Date: @!@DATE@!@

+ 19
- 0
.emacs.d/templates/scheme-template.scm View File

@ -0,0 +1,19 @@
;; (C) Copyright Collin Doering @!@YEAR@!@
;;
;; 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/>.
;; File: @!@FILE@!@
;; Author: Collin J. Doering <rekahsoft@gmail.com>
;; Date: @!@DATE@!@

+ 21
- 0
.emacs.d/templates/shell-template.sh View File

@ -0,0 +1,21 @@
#!/bin/sh
# (C) Copyright Collin Doering @!@YEAR@!@
#
# 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/>.
# File: @!@FILE@!@
# Author: Collin J. Doering <rekahsoft@gmail.com>
# Date: @!@DATE@!@

Loading…
Cancel
Save