Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

updated readme regarding hacking of ESK #154

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ screencast](http://peepcode.com/products/meet-emacs) helpful. The
[Emacs Wiki](http://emacswiki.org) is also very handy.

## Installation

You'll need Emacs 24, which comes with package.el. It's not hard to
compile [from source](http://github.com/emacsmirror/emacs), but
precompiled versions are readily available for
Expand Down Expand Up @@ -83,6 +82,33 @@ restructured so that it can be treated like any other package, freeing
you up to structure your .emacs.d directory as you wish. See
"Upgrading" below.

## Hacking the Emacs Starter Kit

Create a fork of ESK on github, then make a clone your fork:

```Sh
git clone git@github.com:<yourgithubusername>/emacs-starter-kit.git ~/.emacs.d/emacs-starter-kit
```

And add to your ~/.emacs.d/init.el
```Lisp
(add-to-list 'load-path "~/.emacs.d/emacs-starter-kit/")
(add-to-list 'load-path "~/.emacs.d/emacs-starter-kit/modules/")
(require 'starter-kit)
(require 'starter-kit-lisp)
(require 'starter-kit-eshell)
(require 'starter-kit-bindings)
(require 'starter-kit-js)
(require 'starter-kit-ruby)
(require 'starter-kit-perl)
```

You will need to delete starter-kit packages from ELPA if you have
previously installed them.

### Disclaimer
As of 2012-10-29 Emacs Starter Kit is no longer under active development.

## FAQ

**Q:** When I try to create a new file or buffer, the autocompletion is eager and tries to use the name of an existing file or buffer.
Expand Down
7 changes: 4 additions & 3 deletions modules/starter-kit-js.el
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@

;;;###autoload
(eval-after-load 'js
'(progn (define-key js-mode-map "{" 'paredit-open-curly)
(define-key js-mode-map "}" 'paredit-close-curly-and-newline)
(add-hook 'js-mode-hook 'esk-paredit-nonlisp)
'(progn
;(define-key js-mode-map "{" 'paredit-open-curly)
; (define-key js-mode-map "}" 'paredit-close-curly-and-newline)
; (add-hook 'js-mode-hook 'esk-paredit-nonlisp)
(setq js-indent-level 2)
;; fixes problem with pretty function font-lock
(define-key js-mode-map (kbd ",") 'self-insert-command)
Expand Down
8 changes: 1 addition & 7 deletions modules/starter-kit-lisp.el
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,12 @@
"Face used to dim parentheses."
:group 'starter-kit-faces)

(eval-after-load 'paredit
;; need a binding that works in the terminal
'(progn
(define-key paredit-mode-map (kbd "M-)") 'paredit-forward-slurp-sexp)
(define-key paredit-mode-map (kbd "M-(") 'paredit-backward-slurp-sexp)))

(dolist (mode '(scheme emacs-lisp lisp clojure clojurescript))
(when (> (display-color-cells) 8)
(font-lock-add-keywords (intern (concat (symbol-name mode) "-mode"))
'(("(\\|)" . 'esk-paren-face))))
(add-hook (intern (concat (symbol-name mode) "-mode-hook"))
'paredit-mode))
'smartparens-mode))

(defun esk-pretty-fn ()
(font-lock-add-keywords nil `(("(\\(\\<fn\\>\\)"
Expand Down
7 changes: 0 additions & 7 deletions starter-kit-defuns.el
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,6 @@
(interactive)
(message (if (y-or-n-p "Do you have a test for that? ") "Good." "Bad!")))

(defun esk-paredit-nonlisp ()
"Turn on paredit mode for non-lisps."
(interactive)
(set (make-local-variable 'paredit-space-for-delimiter-predicates)
'((lambda (endp delimiter) nil)))
(paredit-mode 1))

;; A monkeypatch to cause annotate to ignore whitespace
(defun vc-git-annotate-command (file buf &optional rev)
(let ((name (file-relative-name file)))
Expand Down
2 changes: 1 addition & 1 deletion starter-kit-pkg.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(define-package "starter-kit" "2.0.3"
"Saner defaults and goodies."
'((paredit "22") (idle-highlight-mode "1.1.1") (find-file-in-project "3.0")
'((smartparens "20130409.1447") (idle-highlight-mode "1.1.1") (find-file-in-project "3.0")
(smex "1.1.2") (ido-ubiquitous "0.3") (magit "0.8.1")))