Skip to content

Instantly share code, notes, and snippets.

Created December 20, 2011 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1503817 to your computer and use it in GitHub Desktop.
Save anonymous/1503817 to your computer and use it in GitHub Desktop.
;;----
;;Common Lisp stuff
;;----
;; 1). setup slime right
(add-to-list 'load-path "~/.emacs.d/slime/")
(setq inferior-lisp-program "/usr/local/bin/ccl64")
(require 'slime)
(slime-setup '(slime-fancy))
;; 2). cl-annot setup - TOFIX
;;(add-to-list 'load-path "~/.emacs.d/etc/")
;;(require 'slime-annot)
;; 3). setup the hyperspec
(require 'hyperspec)
(load "~/quicklisp/dists/quicklisp/software/gbbopen-20111203-svn/browse-hyperdoc")
(setf common-lisp-hyperspec-root "file:~/clhs/")
;;----
;;Clojure stuff
;;----
;; clojure-mode
(add-to-list 'load-path "~/.emacs.d/elpa/clojure-mode-1.11.4")
(require 'clojure-mode)
;; swank-clojure
(add-to-list 'load-path "~/.emacs.d/swank-clojure/src/emacs")
(require 'swank-clojure-autoload)
;; slime
(eval-after-load "slime"
'(progn (slime-setup '(slime-repl))))
(require 'slime)
(slime-setup)
;;----
;;Factor stuff
;;----
(load-file "/Applications/factor/misc/fuel/fu.el")
;;(add-to-list 'load-path "/Applications/factor/fuel")
;;(setq factor-mode-use-fuel t)
;;(require 'factor-mode)
(setq fuel-listener-factor-binary "/Applications/factor/Factor.app/Contents/MacOS/factor")
(setq fuel-listener-factor-image "/Applications/factor/factor.image")
;;----
;;Ruby stuff
;;----
(add-to-list 'load-path "~/.emacs.d/elpa/starter-kit-ruby-2.0")
(require 'starter-kit-ruby)
;;----
;;Color theme
;;----
;;(add-to-list 'load-path "~/.emacs.d/elpa/color-theme-6.6.1")
;;(require 'color-theme)
;;(add-to-list 'load-path "~/.emacs.d/color-theme-subdued")
;;(require 'color-theme-subdued)
;;(color-theme-subdued)
;;----
;;Stupid bell no more
;;----
(setq ring-bell-function 'ignore)
;;----
;;Full-screen mode TOFIX
;;----
(defun toggle-max-window ()
(interactive)
(set-frame-parameter nil 'fullscreen
(if (frame-parameter nil 'fullscreen)
nil
'fullboth)))
(global-set-key (kbd "<f12>") 'toggle-max-window)
;;----
;;org mode
;;----
(require 'org-install)
;; The following lines are always needed. Choose your own keys.
(add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))
(add-hook 'org-mode-hook 'turn-on-font-lock) ; not needed when global-font-lock-mode is on
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
;;-----
;;ruby setup hints from
;;http://appsintheopen.com/articles/1-setting-up-emacs-for-rails-development/part/6-setting-up-the-emacs-code-browser
;;-----
; allows syntax highlighting to work
(global-font-lock-mode 1)
;; Enable EDE (Project Management) features
(global-ede-mode 1)
;; * This enables the database and idle reparse engines
;;(semantic-load-enable-minimum-features)
;; * This enables some tools useful for coding, such as summary mode
;; imenu support, and the semantic navigator
;;(semantic-load-enable-code-helpers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment