From 59c6116b487a71eab5f6ac547ddc8ff298ad244d Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sun, 14 Aug 2016 23:42:06 -0700 Subject: [PATCH] update readme --- README | 15 +++++++++++---- my-init.org | 28 ++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 4 deletions(-) diff --git a/README b/README index a82a6e7..c2cb09b 100644 --- a/README +++ b/README @@ -1,4 +1,11 @@ -You won't want to try to use this repo as a whole due to very custom -keybindings and thus some other stuff like package submodules I didn't -setup. However, there is lots of stuff that could be useful, but -ymmv: it's got some bugs and hasn't been cleaned up for publication. +~10k lines of elisp and comments + +My config is not portable as a whole due to very custom keybindings and +packages referenced but not included in the repo. However, there is lots +of stuff that could be useful, but ymmv: it's got a few bugs and hasn't +been cleaned up for publication. Currently on 25.1.50.1, I update to the +latest git version periodically: I have a buildscript for emacs in the +buildscript repo at https://iankelling.org/git. + +Please email me if you have a patches, bugs, feedback, republish this, +or find it useful: Ian Kelling . diff --git a/my-init.org b/my-init.org index 6d698da..b854dbe 100644 --- a/my-init.org +++ b/my-init.org @@ -2332,6 +2332,9 @@ unchecked some stuff so that it inherits from default. #+begin_src emacs-lisp + + + (defun next-backup-dir () "In a directory listing from rsync -n, Go to the next directory based on where the cursor is." @@ -8399,6 +8402,31 @@ text-scale-reset :PROPERTIES: :CUSTOM_ID: 0e7f83a5-600e-4016-af98-95904300c016 :END: +insert-apache +[ +#+begin_src emacs-lisp +(defun insert-apache () + (interactive) + (beginning-of-line) + (let ((beg (point))) + (insert "Copyright (C) 2016 Ian Kelling\n") + (insert "\n") + (insert "Licensed under the Apache License, Version 2.0 (the \"License\");\n") + (insert "you may not use this file except in compliance with the License.\n") + (insert "You may obtain a copy of the License at\n") + (insert "\n") + (insert " http://www.apache.org/licenses/LICENSE-2.0\n") + (insert "\n") + (insert "Unless required by applicable law or agreed to in writing, software\n") + (insert "distributed under the License is distributed on an \"AS IS\" BASIS,\n") + (insert "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n") + (insert "See the License for the specific language governing permissions and\n") + (insert "limitations under the License.\n") + (comment-region beg (point)))) +(global-set-key (kbd "C-M-0") 'insert-apache) +#+end_src +] + *** C-S-0 :PROPERTIES: :CUSTOM_ID: d1706bc7-7cf0-4b49-87d0-15bf76eaca5f -- 2.30.2