Skip to content
Browse files

merged emacs.d/master into master

  • Loading branch information...
2 parents fe035b1 + b6f8c16 commit e278beac1ae31cdee64aebb2df80a625965787e3 Thomas Pröger committed
Showing with 60 additions and 10 deletions.
  1. +9 −4 README
  2. +4 −0 ede-projects.el
  3. +10 −4 init.el
  4. +3 −2 lisp/config/cedet-config.el
  5. +28 −0 lisp/config/slime-config.el
  6. +6 −0 lisp/config/template-config
View
13 README
@@ -7,8 +7,13 @@ This is my personal emacs configuration and script collection.
content:
-| init.el | The base configuration file. This is the alternative configuration to ~/.emacs. |
-| auto-save-list | Emacs managed directory for autosaved session informations. |
-| tramp | auto-generated, connection history from tramp |
+| README | this file |
+| init.el | The base configuration file. This is the alternative configuration to ~/.emacs. |
+| auto-save-list | Emacs managed directory for autosaved session informations. |
+| tramp | auto-generated, connection history from tramp |
+| ede-projects.el | auto-generated, managed by EDE |
+| .org-id-locations | org-mode; stores task IDs and associated files |
+| lisp | elisp code |
+| lisp/config | personal configuration files |
+
-.. more to come.
View
4 ede-projects.el
@@ -0,0 +1,4 @@
+;; EDE project cache file.
+;; This contains a list of projects you have visited.
+(
+)
View
14 init.el
@@ -18,9 +18,7 @@
)
;; adjust load path
-(setq load-path (append '("~/.emacs.d/lisp"
- "~/.emacs.d/lisp/config"
- "~/.emacs.d/lisp/packages")
+(setq load-path (append '("~/.emacs.d/lisp")
load-path))
;; recursively add directories to load-path
@@ -39,7 +37,11 @@
(global-set-key (kbd "C-x p") 'find-file-at-point)
;; open eshell buffer
(global-set-key (kbd "M-RET") 'eshell)
-
+;; enable window movement similar to vi
+(global-set-key (kbd "M-H") 'windmove-left)
+(global-set-key (kbd "M-J") 'windmove-down)
+(global-set-key (kbd "M-K") 'windmove-up)
+(global-set-key (kbd "M-L") 'windmove-right)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; load package specific configuration
@@ -62,3 +64,7 @@ and will provide a symbol called '<name>-config." t)
;; Eshell Mode
(require 'eshell-config)
+
+;; Superior Lisp Interaction Mode for Emacs
+(require 'slime-config)
+
View
5 lisp/config/cedet-config.el
@@ -18,5 +18,6 @@
;; my projects
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(ede-cpp-root-project "isis" :file "~/files/programming/isis/README"
- :name "ISIS")
+(if (file-exists-p "~/files/programming/isis/README")
+ (ede-cpp-root-project "isis" :file "~/files/programming/isis/README"
+ :name "ISIS"))
View
28 lisp/config/slime-config.el
@@ -0,0 +1,28 @@
+(provide 'slime-config)
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; slime - configuration file
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(setq inferior-lisp-program "/usr/bin/sbcl")
+;; (add-to-list 'load-path "_the path of your `slime' directory_")
+(require 'slime-autoloads)
+(slime-setup)
+
+;; add file extension '*.cl'
+(add-to-list 'auto-mode-alist '("\\.cl\\'" . lisp-mode))
+
+;; setup slime-repl-mode keymap
+(defun my-slime-repl-mode-keys ()
+ (define-key slime-repl-mode-map (kbd "C-c )")
+ 'slime-close-all-parens-in-sexp))
+
+(add-hook 'slime-repl-mode-hook 'my-slime-repl-mode-keys)
+
+;; setup slime-mode keymap
+(defun my-slime-mode-keys ()
+ (define-key slime-mode-map (kbd "C-c C-]") nil) ;remove old entry
+ (define-key slime-mode-map (kbd "C-c )") ;setup new entry
+ 'slime-close-all-parens-in-sexp))
+
+(add-hook 'slime-mode-hook 'my-slime-mode-keys)
View
6 lisp/config/template-config
@@ -0,0 +1,6 @@
+(provide 'FNAME)
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; NAME - configuration file
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+

0 comments on commit e278bea

Please sign in to comment.
Something went wrong with that request. Please try again.