Git Product home page Git Product logo

overtone / emacs-live Goto Github PK

View Code? Open in Web Editor NEW
1.5K 1.5K 240.0 55.39 MB

M-x start-hacking

Home Page: http://overtone.github.com/emacs-live/

License: Other

Emacs Lisp 94.71% Shell 0.08% Makefile 0.49% CSS 0.06% Ruby 0.04% TeX 1.87% Perl 0.05% Gherkin 0.87% Clojure 0.03% HTML 0.08% CMake 0.01% Oz 0.04% JavaScript 0.03% C 0.01% Python 1.31% LilyPond 0.01% Objective-C 0.01% Erlang 0.17% Roff 0.03% YASnippet 0.12%

emacs-live's Introduction

Emacs Live Logo

Energy starts surging through your fingertips. Sparks fly, making
the shadows grow and flicker ominously around you. You arch your
back and open your eyes as if for the first time. The text appears
more vibrant and colourful than you remember. Your fingers dance on
the keyboard commanding the cursor with a joyful precision and
control.

You lean back and marvel as a shimmering swirl of syntactic and
semantic structures project out of the screen and intertwine with a
fractal beauty. You watch as meaning recursively unfolds into deeper
meaning live in front of your eyes. You feel a deep and lasting
synchronicity form as the boundaries between you and your Emacs
wash away. You and your Emacs Live.

M-x start-hacking.

Emacs Live

An opinionated set of defaults for getting started with a specific focus on live coding with Overtone and Quil. However, it's not just a one trick pony. It also happens to be:

  • a jolly good generic Clojure hacking config
  • a nice structured approach to organising your Emacs config
  • modular in that functionality is organised by discrete packs
  • a decent starting point for live coding in general
  • a goldmine of config snippets to plunder and add to your own config

So, wherever you are in the multiverse, Emacs Live is ready to join you in battle against the evil friction of poor text editor workflows.

"Power of the horse, full force!"
             The Space Stallions.

Requires Emacs 24.4

Emacs Live is only compatible with Emacs 24.4 and above.

Easy Install

If you're the kind of shoot-from-the-hip brogrammer that doesn't mind executing random scripts from the interwebs, then the easiest way to install Emacs Live is to run the following which will safely preserve any Emacs configs you already have:

bash <(curl -fksSL https://raw.github.com/overtone/emacs-live/master/installer/install-emacs-live.sh)

Note: you should always read through random scripts before executing them!

Getting Started

The (only ever-so-slightly) more involved way to install is to follow these steps:

  1. Move aside ~/.emacs, ~/.emacs.el or ~/.emacs.d if they currently exist.
  2. Download the zip bundle (or clone the repository with git) and move and rename to ~/.emacs.d
  3. Launch Emacs version 24+
  4. Live code your hat off!

Clojure Hacking

If you wish to hack with Clojure projects such as Overtone and Quil you'll need to install Leiningen 2 and you're ready to roll.

Make sure you create a profile in ~/.lein/profiles.clj. It should contain the following:

{:user {:plugins [[cider/cider-nrepl "0.12.0"]
                  [refactor-nrepl    "2.2.0"]]}}

Now you're ready to start a repl in a Clojure project with lein repl and connect to it from Emacs with M-x cider-connect (supplying the host and the correct port) for full Emacs REPL/autocompletion joy.

Screenshots

Screenshot 1

Screenshot 2

Video

Here's a video showing the config in use: Quick Intro to Live Programming with Overtone

Live Packs

Emacs Live is powered by a number of special packs. Packs are directories which are used to store isolated sets of functionality and configuration. These may be symlinks or git submodules depending on how you choose to store and manage your dot emacs.

Pack Structure

Each pack consists of three components: the init.el, config dir and lib dir. The init.el file is loaded first and it is here that you can run arbitrary elisp. However, it is recommended that you organise your pack by placing library code in the lib dir and individual config files in the config dir. Emacs Live provides helper fns to make it easy for you to load config files and for you to add lib dirs to your load path. See the section on helper fns below.

Shipped Packs

Emacs live ships with a few packs:

Foundation

A set of defaults to create a clutter free, friendly and more dynamic Emacs foundation. Also adds fuzzy matching autocomplete functionality for most of the Emacs minibuffer actions - such as finding files, calling functions and switching buffers.

Colour

Colour highlighting in two flavours - cyberpunk and gandalf. Use color-theme-cyberpunk and color-theme-gandalf to switch between the two themes. Currently cyberpunk has seen more love - patch requests accepted for appropriate improvements to Gandalf.

Clojure

A set of goodies to get you hacking Clojure like a pro.

  • Clojure Mode (with fancy (λ [a] (+ a 5)) and ƒ(+ % 5) prettifications)
  • cider (for communicating with nREPL servers)
  • Auto completion (configured to work with nREPL for inline auto completion of documentation)
  • Tailor-made colour theme
  • Fancy highlighting of sexps on eval
  • Rainbow parens and delimiters (to allow you to easily navigate a sea of parens)

Lang

A number of extra language modes for your joy. Languages include:

  • Markdown
  • Yaml
  • Ruby
  • SuperCollider
  • JavaScript
  • Extempore
  • GLSL Shaders

Power

A boost of fantastic functionality for your live-coding fingertips. Highlights include:

  • The amazing undo-tree (live-code with confidence!)
  • Textmate-like snippets
  • Refheap mode for pasting snippets to refheap.com
  • Github Gist support
  • Quick jump mode for accessing previous locations
  • Ace jump mode for jumping directly to any symbol on the screen with 2 or three keystrokes.

Loading Packs

By default, Emacs live will load the packs in the following order:

  1. foundation-pack
  2. colour-pack
  3. lang-pack
  4. power-pack
  5. git-pack
  6. org-pack
  7. clojure-pack
  8. bindings-pack

However, you may create a ~/.emacs-live.el file to override this behaviour. Simply set the var live-packs to a list of symbols representing the packs you'd like to load up (the order will be honoured). For example to only load the foundation and colour packs:

(live-use-packs '(stable/foundation-pack stable/colour-pack))

If just you wish to load your own packs after the default packs then simply use live-add-packs:

(live-add-packs '(~/.live-packs/yourname-pack))

Packs are expected to reside in ~/.emacs.d/packs/ unless you specify them with absolute paths in which case the absolute path with be honoured.

Creating your own Packs

Emacs Live provides a couple of useful helper fns which you can use within your own live packs:

  • live-pack-lib-dir this returns the path of the lib dir for the current pack
  • live-load-config-file loads a config file located in the config dir of the current pack

It is recommended that you place your own personal packs in an external directory. See the user/template-pack's README for more information.

Mailing List

I'm very happy to hear any feedback regarding this config. The idea is for you to use it to get started and give you a platform to start editing it and turning it into something personal.

Please make any comments on the Emacs Live mailing list:

http://groups.google.com/group/emacs-live

emacs-live's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

emacs-live's Issues

Zoning

I don't know if this justifies a new issue, but I'm having a problem with the new zoning extension you've included. I frequently ssh into computers and edit files over the network. Zone mode kicks in as soon as emacs starts and it really bogs down my connection for a few seconds.

I tried disabling it by placing (zone-leave-me-alone) in my live-pack, but the command runs before zone mode begins. I'm sorry if I'm missing something obvious!

Useful utilities in the clojure-pack.

I don't write much (any) clojure. :)

So I've successfully disabled loading of clojure-pack using (live-ignore-packs). However, some useful utilities, such as auto-complete live inside the clojure-pack.

Is it possible to move any more "generally" useful tools into a pack such as the foundation-pack or the power-pack?

Thanks!

SLIME does not use utf8 encoding

Using unicode characters fails when using SLIME, for example evaluating

"☃"

gives the following error

cond: Coding system iso-latin-1-unix not suitable for [...]

Adding (setq slime-net-coding-system 'utf-8-unix) to ~/.emacs.d/packs/live/clojure-pack/config/slime-conf.el fixed it for me.

nrepl commit is mising

The submodule nrepl is missing the last commit b1eb24b80bd8aed83645c9f31acb01cd4c0c5895.

Can't update the submodule.

Autocomplete throws error in REPL often, and in buffer during Java-interop

screen of trace

First off: I'm an emacs novice, but I do find that emacs-live has been a great set of defaults for learning Clojure. Thanks for maintaining this project!

This error seems like it may be thrown when additional information (such as documentation) is being looked up for the symbol under the cursor. This happens very often in the connected nREPL and even in the buffer when there's a Java symbol under the cursor.

I'm using nREPL 0.1.0-beta10, Leiningen 2.0.0-preview10 and Java 1.6

user-pack not supported (but README says it is)

According to the README:

By default, Emacs live will load the packs in the following order:

* live
  - `foundation-pack`, `colour-pack`,`clojure-pack`, `lang-pack` and
    `power-pack`
* user
  - `user-pack`

But there doesn't seem to be any support for this in init.el. What I do see in init.el is support for a ~/.emacs-live.el file, but that is not documented in the README.

Please update/clarify the docs as to how to load custom packs or change init.el to support loading ~/.emacs.d/packs/user/user-pack, as the README suggests (I think).

Found a fix for bold/italics on AC popups

Always has bugged me, don't know why didn't I google it before :)

auto-complete/auto-complete#21

So one has to append :slant normal :weight normal to each AC/popup face definition.

By the way, you may be interested in porting the color-themes to deftheme format, it's a pretty trivial conversion. As you've probably heard, 'defthemes' come built-in w/ Emacs 24.

Any manual available?

Hi,

I'm using emacs-live for clojure developing, I wanna find if there's any key binding can evalueate a expression in nrepl, but i found no manual available. Is there any and how to get them?

Thanks.

scsynth start-up

Hi all. I hope this is the right place to get some help for the case of being unable to launch the scsynth with:

s.boot

command or,

s = Server.local.boot;

This below is what i see on the messages window, i will appreciate any hint as on where to look to try to understand what is missing or what am i doing wrong. This is with SuperCollider 3.7 with emacs-snapshot and emacs-live under debian.

If i launch a plain instance of sclang from the command-line i can get to connect to jack simply issuing: s.boot

But via the emacs-live package, i can get to my SCLang:Workspace do the sclang-start and sclang-eval-line M-x commands but there's no way for me to get to hear something out on the synth or even see any effect to evaluating the lines, no matter if i launch manually scsynth (since this lines below have no effect):

Loading /etc/emacs/site-start.d/00debian-vars.el (source)...done
Loading /etc/emacs-snapshot/site-start.d/00emacs-snapshot-common.el (source)...done
Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
Loading /etc/emacs/site-start.d/50cmake-data.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Skipping dictionaries-common setup for emacs-snapshot
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50psvn.el (source)...done
Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done
Loading /home/.emacs.d/manifest.el (source)...done
Loading /home/.emacs.d/lib/live-core.el (source)...done
Loading /home/.emacs-live.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/init.el (source)...
Loading /home/.emacs.d/packs/live/foundation-pack/config/auto-compile-conf.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/backup-dir-conf.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/util-fns.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/built-in.el (source)...
Loading /home/.emacs.d/tmp/recentf...done
Cleaning up the recentf list...done (0 removed)
Loading /home/.emacs.d/packs/live/foundation-pack/config/built-in.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/cosmetic.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/ido-conf.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/smex-conf.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/tramp-conf.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/mouse-conf.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/ibuffer-git-conf.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/key-chord-conf.el (source)...
Key Chord mode on
Loading /home/.emacs.d/packs/live/foundation-pack/config/key-chord-conf.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/window-number-conf.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/recentf-conf.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/elisp-slime-nav-conf.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/popwin-conf.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/shell-conf.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/spelling-conf.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/lisp-conf.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/win-switch-conf.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/config/zone-conf.el (source)...done
Loading /home/.emacs.d/packs/live/foundation-pack/init.el (source)...done
Loading /home/.emacs.d/packs/live/colour-pack/init.el (source)...
Loading /home/.emacs.d/packs/live/colour-pack/config/colour-theme-conf.el (source)...
Loading /home/.emacs.d/packs/live/colour-pack/lib/cyberpunk.el (source)...done
Loading /home/.emacs.d/packs/live/colour-pack/lib/gandalf.el (source)...done
Loading /home/.emacs.d/packs/live/colour-pack/config/colour-theme-conf.el (source)...done
Loading /home/.emacs.d/packs/live/colour-pack/config/live-fontify-hex-conf.el (source)...done
Loading /home/.emacs.d/packs/live/colour-pack/config/live-fontify-hex-conf.el (source)...done
Loading /home/.emacs.d/packs/live/colour-pack/init.el (source)...done
Loading /home/.emacs.d/packs/live/clojure-pack/init.el (source)...
Loading /home/.emacs.d/packs/live/clojure-pack/config/paredit-conf.el (source)...done
Loading /home/.emacs.d/packs/live/clojure-pack/config/mic-paren-conf.el (source)...
../.emacs.d/packs/live/clojure-pack/lib/mic-paren.el: flet' is an obsolete macro (as of 24.3); use eithercl-flet' or cl-letf'. Loading /home/.emacs.d/packs/live/clojure-pack/config/mic-paren-conf.el (source)...done Loading /home/.emacs.d/packs/live/clojure-pack/config/highlight-flash-conf.el (source)... ../.emacs.d/packs/live/clojure-pack/lib/nrepl-eval-sexp-fu/nrepl-eval-sexp-fu.el:flet' is an obsolete macro (as of 24.3); use either cl-flet' orcl-letf'. [2 times]
Loading /home/.emacs.d/packs/live/clojure-pack/config/highlight-flash-conf.el (source)...done
Loading /home/.emacs.d/packs/live/clojure-pack/config/clojure-conf.el (source)...done
Loading /home/.emacs.d/packs/live/clojure-pack/config/auto-complete-conf.el (source)...
../.emacs.d/packs/live/clojure-pack/lib/fuzzy-el/fuzzy.el: flet' is an obsolete macro (as of 24.3); use eithercl-flet' or cl-letf'. [3 times] ../.emacs.d/packs/live/clojure-pack/lib/auto-complete/auto-complete.el:flet' is an obsolete macro (as of 24.3); use either cl-flet' orcl-letf'.
Loading /home/.emacs.d/packs/live/clojure-pack/config/auto-complete-conf.el (source)...done
Loading /home/.emacs.d/packs/live/clojure-pack/config/nrepl-conf.el (source)...
../.emacs.d/packs/live/clojure-pack/lib/nrepl/nrepl.el: flet' is an obsolete macro (as of 24.3); use eithercl-flet' or cl-letf'. Loading /home/.emacs.d/packs/live/clojure-pack/config/nrepl-conf.el (source)...done Loading /home/.emacs.d/packs/live/clojure-pack/init.el (source)...done Loading /home/.emacs.d/packs/live/lang-pack/init.el (source)... Loading /home/.emacs.d/packs/live/lang-pack/config/yaml-conf.el (source)...done Loading /home/.emacs.d/packs/live/lang-pack/config/ioke-conf.el (source)...done Loading /home/.emacs.d/packs/live/lang-pack/config/auto-modes.el (source)...done Loading /home/.emacs.d/packs/live/lang-pack/config/ruby-conf.el (source)...done Loading /home/.emacs.d/packs/live/lang-pack/config/markdown-conf.el (source)...done Loading /home/.emacs.d/packs/live/lang-pack/config/supercollider-conf.el (source)... ../.emacs.d/packs/live/lang-pack/lib/scel/el/sclang-interp.el:flet' is an obsolete macro (as of 24.3); use either cl-flet' orcl-letf'.
../.emacs.d/packs/live/lang-pack/lib/scel/el/sclang-language.el: flet' is an obsolete macro (as of 24.3); use eithercl-flet' or cl-letf'. [2 times] ../.emacs.d/packs/live/lang-pack/lib/scel/el/sclang-help.el:flet' is an obsolete macro (as of 24.3); use either cl-flet' orcl-letf'.
../.emacs.d/packs/live/lang-pack/lib/scel/el/sclang-server.el: flet' is an obsolete macro (as of 24.3); use eithercl-flet' or cl-letf'. Loading /home/.emacs.d/packs/live/lang-pack/config/supercollider-conf.el (source)...done Loading /home/.emacs.d/packs/live/lang-pack/config/actionscript-conf.el (source)... Loading /home/.emacs.d/packs/live/lang-pack/lib/actionscript-mode/actionscript-config.el (source)...done Loading /home/.emacs.d/packs/live/lang-pack/config/actionscript-conf.el (source)...done Loading /home/.emacs.d/packs/live/lang-pack/config/js2-conf.el (source)...done Loading /home/.emacs.d/packs/live/lang-pack/init.el (source)...done Loading /home/.emacs.d/packs/live/power-pack/init.el (source)... Loading /home/.emacs.d/packs/live/power-pack/config/volatile-highlights-conf.el (source)...done Loading /home/.emacs.d/packs/live/power-pack/config/yasnippet-conf.el (source)... ../.emacs.d/packs/live/power-pack/lib/yasnippet/yasnippet.el:labels' is an obsolete macro (as of 24.3); use cl-labels' instead. [2 times] [yas] Prepared just-in-time loading for ~/.emacs.d/etc/snippets [yas] Reloaded everything (snippets will load just-in-time).... Loading /home/.emacs.d/packs/live/power-pack/config/yasnippet-conf.el (source)...done Loading /home/.emacs.d/packs/live/power-pack/config/undo-tree-conf.el (source)...done Loading /home/.emacs.d/packs/live/power-pack/config/refheap-conf.el (source)...done Loading /home/.emacs.d/packs/live/power-pack/config/scratch-conf.el (source)...done Loading /home/.emacs.d/packs/live/power-pack/config/highlight-tail-conf.el (source)...done Loading /home/.emacs.d/packs/live/power-pack/config/gist-conf.el (source)... ../.emacs.d/packs/live/power-pack/lib/gh/gh-api.el:flet' is an obsolete macro (as of 24.3); use either cl-flet' orcl-letf'. [2 times]
Loading /home/.emacs.d/packs/live/power-pack/config/gist-conf.el (source)...done
Loading /home/.emacs.d/packs/live/power-pack/config/browse-kill-ring-conf.el (source)...done
Loading /home/.emacs.d/packs/live/power-pack/config/expand-region-conf.el (source)...done
Loading /home/.emacs.d/packs/live/power-pack/config/ace-jump-mode-conf.el (source)...done
Loading /home/.emacs.d/packs/live/power-pack/config/multiple-cursors-conf.el (source)...done
Loading /home/.emacs.d/packs/live/power-pack/init.el (source)...done
Loading /home/.emacs.d/packs/live/git-pack/init.el (source)...
Loading /home/.emacs.d/packs/live/git-pack/config/magit-conf.el (source)...
../.emacs.d/packs/live/git-pack/lib/magit/magit.el: flet' is an obsolete macro (as of 24.3); use eithercl-flet' or cl-letf'. ../.emacs.d/packs/live/git-pack/lib/magit/magit-key-mode.el:flet' is an obsolete macro (as of 24.3); use either cl-flet' orcl-letf'.
Loading /home/.emacs.d/packs/live/git-pack/config/magit-conf.el (source)...done
Loading /home/.emacs.d/packs/live/git-pack/init.el (source)...done
Loading /home/.emacs.d/packs/live/bindings-pack/init.el (source)...
Loading /home/.emacs.d/packs/live/bindings-pack/config/default-bindings.el (source)...done
Loading /home/.emacs.d/packs/live/bindings-pack/init.el (source)...done
Loading /home/.live-packs/alejo-pack/init.el (source)...
Loading /home/.live-packs/alejo-pack/config/bindings.el (source)...done
Loading /home/.live-packs/alejo-pack/init.el (source)...done
[yas] Loading for emacs-lisp-mode', just-in-time: (yas--load-directory-1 /home/.emacs.d/etc/snippets/emacs-lisp-mode (quote emacs-lisp-mode) (quote (text-mode)))! [yas] Loading compiled snippets from /home/.emacs.d/etc/snippets/emacs-lisp-mode [yas] Loading fortext-mode', just-in-time: (yas--load-directory-1 /home/.emacs.d/etc/snippets/text-mode (quote text-mode) (quote nil))!
[yas] Loading compiled snippets from /home/.emacs.d/etc/snippets/text-mode
For information about GNU Emacs and the GNU system, type M-h C-a.
Package assoc is obsolete!
Zoning...sorry

Any light appreciated.

Overriding bundled extensions with extensions from my personal live-pack.

The ace-jump-mode included with emacs-live is version 1.0, but I'm interested in using a newer version of ace-jump-mode. I've included the newer version in one of my live-packs, but I'm not sure the best way to override the older version's function definition and instead use the newer one.

Currently I've just commented out the older ace-jump-mode require in the bundled live-pack, but I'd rather not have to touch your code when attempting to use my own versions of extensions that are already bundled in.

Java Unknown Packages Autocomplete

Setup: Ubuntu 12.04, Emacs 24.1.50.1, curent emacs-live (nrepl)

Error: When typing a java package that is unknown to AC it:

  • tries to find all java packages ("Listing all matching JVM classes...")
    • crashes immediately with the trace shown at the end of this report.

This is a problem when trying to type java classes that are unknown to AC for whatever reason as it interrupts on every letter! In my case they packages are sitting in an uberjar, so I can import them into my namespace, but AC doesn't know of them. AC does know about com.sun.etcetc

Desired action: Fail silently

----------- SNIP ------------

java.lang.ClassNotFoundException: com.ga
at java.net.URLClassLoader$1.run (URLClassLoader.java:217)
java.security.AccessController.doPrivileged (AccessController.java:-2)
java.net.URLClassLoader.findClass (URLClassLoader.java:205)
clojure.lang.DynamicClassLoader.findClass (DynamicClassLoader.java:61)
java.lang.ClassLoader.loadClass (ClassLoader.java:321)
java.lang.ClassLoader.loadClass (ClassLoader.java:266)
java.lang.Class.forName0 (Class.java:-2)
java.lang.Class.forName (Class.java:264)
clojure.lang.RT.classForName (RT.java:2039)
clojure.lang.Compiler.maybeResolveIn (Compiler.java:6789)
clojure.core$ns_resolve.invoke (core.clj:3883)
clojure.core$ns_resolve.invoke (core.clj:3880)
clojure.core$resolve.invoke (core.clj:3889)
complete.core$resolve_class.invoke (core.clj:83)
user$eval2386.invoke (NO_SOURCE_FILE:6)
clojure.lang.Compiler.eval (Compiler.java:6511)
clojure.lang.Compiler.eval (Compiler.java:6477)
clojure.core$eval.invoke (core.clj:2797)
clojure.main$repl$read_eval_print__6405.invoke (main.clj:245)
clojure.main$repl$fn__6410.invoke (main.clj:266)
clojure.main$repl.doInvoke (main.clj:266)
clojure.lang.RestFn.invoke (RestFn.java:1096)
clojure.tools.nrepl.middleware.interruptible_eval$evaluate$fn__495.invoke (interruptible_eval.clj:57)
clojure.lang.AFn.applyToHelper (AFn.java:159)
clojure.lang.AFn.applyTo (AFn.java:151)
clojure.core$apply.invoke (core.clj:601)
clojure.core$with_bindings_STAR_.doInvoke (core.clj:1771)
clojure.lang.RestFn.invoke (RestFn.java:425)
clojure.tools.nrepl.middleware.interruptible_eval$evaluate.invoke (interruptible_eval.clj:42)
clojure.tools.nrepl.middleware.interruptible_eval$interruptible_eval$fn__536$fn__538.invoke (interruptible_eval.clj:170)
clojure.core$comp$fn__4034.invoke (core.clj:2278)
clojure.tools.nrepl.middleware.interruptible_eval$run_next$fn__529.invoke (interruptible_eval.clj:137)
clojure.lang.AFn.run (AFn.java:24)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1110)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:603)
java.lang.Thread.run (Thread.java:679)

emacs-live vs. live-coding-emacs

It surely would be convenient if the readme answered to these questions:

are both projects conceptually the same? should I switch to emacs-live? what'll happen with live-coding-emacs?

cheers - Victor.

Error on Emacs 24.1.50.1 (OSX)

I'm getting the following errors upon opening emacs (I believe the newest version) on osx after installing this.

Error: Don't know how to compile nil
Error: Don't know how to compile nil
Warning: ad-Orig-kill-region called with 3 arguments, but accepts only 2

I'm not sure exactly how to debug this. It seems to work, but my colors are just my default iterm, not anything like the screenshots.

Autocomplete Hang with nrepl into code provided nrepl server

With the latest pull of emacs-live thess actions work:

  • nrepl-jack-in
  • nrepl to port provided by lein repl.

However, if I use the nrepl emacs command to connect to an nrepl server provided in my own app with

(start-server :port 4444)

when I connect in emacs the following Exception is thrown in emacs.

clojure.lang.Compiler$CompilerException: java.lang.ClassNotFoundException: complete.core, compiling:(console/server.clj:1)
Compiler.java:3548 clojure.lang.Compiler$InvokeExpr.parse
Compiler.java:6508 clojure.lang.Compiler.eval
interruptible_eval.clj:140 clojure.tools.nrepl.middleware.interruptible-eval/run-next[fn]
RT.java:2039 clojure.lang.RT.classForName
clojure.lang.Compiler$CompilerException: java.lang.ClassNotFoundException: complete.core, compiling:(console/server.clj:1)�[39m

Then on the first time it tries to autocomplete, the whole emacs locks.

I am using the latest nrepl [org.clojure/tools.nrepl "0.2.0-RC1"] and emacs-live.

Any ideas ?

ibuffer-git and smex missing in dev

If I'm not wrong, packs/dev is something akin to the 'source code' of the project, and packs/live, its output.

So if one for any reason wanted to alter the included packs, then one ought to modify the dev contents and execute update-live-packs, right?

The thing is when I tried this, I got an error as smex and ibuffer-git are not stored in dev, surely by mistake? Two broken symlinks show up instead on my machine.

# symbol on mac osx

How does one produce a # symbol in emacs using emacs-live on mac osx?
M-3 is mapped in magit.el in git-pack, but if I exclude git-pack by using an .emacs-live.el without it then I still cannot remap M-3 to produce # with the following code:

(fset 'insertPound "#")
(global-set-key (kbd "M-3") 'insertPound)

If I remove all the packs then it works. Confused....

error: Invalid version string: 'nil'

After updating today I get the following error when starting up emacs 24.2 for Mac:

Warning (initialization): An error occurred while loading `/Users/dchelimsky/.emacs.d/init.el':

error: Invalid version string: 'nil'

I get the same error on 9f7721b and release/1.0-BETA-19, but not release/1.0-BETA-18.

magit

I see you have some color theme and other configuration for magit, but there is no magit with your distribution.

I made a new pack (git-pack) that right now just includes magit. Are you interested in a pull request for this pack? (I have it setup as a dev pack with a submodule like your other dev packs).

I didn't send the pull request directly because like my js2-mode pull request, I'm not sure if you wanted to include these modes in your distribution since I saw some config for them but not the modes themselves (at first I thought you were avoiding GPL, but i saw some other GPL stuff included in your distribution).

Anyway, the git-pack I made seems to be working fine, so let me know if you want a pull request.

(Clojure + nrepl-jack-in) Emacs freezes if running nrepl and the popup "intellisense-like box tries to show completions in a namespace that hasn't been loaded (with c-c c-k)

I can reproduce this consistently by starting an nrepl using m-x nrepl-jack-in and starting to type (def ..., which would pop-up a completion box with def, defn, defmacro, etc normally, instead emacs becomes unresponsive. If I do load (c-c c-k) the namespace before typing new code, all is well.

Noticed starting with 1.0 BETA12.

Autocomplete (words in buffer) does not work as expected

I am using emacs-live with Emacs 24.1.1 from http://emacsformacosx.com/ and I cannot for the life in me get autocompletion of words in the same buffer (or buffer in same mode) to work (using tab).

Completion of the Clojure core-library works though.

E.g. in a let-form, with some locals defined, I cannot complete any of the locals' names in the body.

I have tried to check the autocomplete configuration, and it should include words in buffer.

Am I missing something or is this broken?

nrepl support

when i go to the swank-clojure github, it says:

Deprecated
This project is no longer under active development.

New users are strongly encouraged to try out nrepl.el instead. If you need an advanced debugger, Ritz might be a better fit.

Is it difficult to port the autocomplete and documentation features to nrepl?

improve auto-compile on modeline behavior.

If symbol specified in auto-complete-mode-line does not exist in mode-line-format, next time auto-compile minor mode is enabled, errors will start occur inside several hooks. This will prevent user from saving the buffer or accessing the minibuffer.

Furthermore debugger doesn't show up at this level and error message lacks sufficient information to easily locate the source of a problem: "Error in post-command-hook (auto-compile-on-save-mode-check-buffers): (wrong-type-argument consp nil)".

In order to reproduce the error start emacs-live using default configuration and having foundation-pack enabled.
Then evaluate (delq 'mode-line-modified mode-line-format) and try to open any emacs lisp file.

UTF encoding is not supported on Mac OS X

Steps to reproduce

  1. Get a fresh copy of Emacs from http://emacsformacosx.com/builds
  2. Move any .emacs.d directories out of the way
  3. Start Emacs from Spotlight
  4. Paste മലയാളം to a buffer
  5. It would display the text correctly
  6. Launch emacs from the terminal with the -nw flag ie. /Applications/Emacs.app/Contents/MacOS/Emacs -nw
  7. Paste മലയാളം to a buffer
  8. It would display the text correctly
  9. Clone emacs-live to ~/.emacs.d
  10. Launch Emacs from Spotlight
  11. Paste മലയാളം to a buffer
  12. It would display ??????
  13. Launch emacs from the terminal with the -nw flag ie /Applications/Emacs.app/Contents/MacOS/Emacs -nw
  14. Paste മലയാളം to a buffer
  15. It would display the text correctly

Looks like some config in emacs-live causes this behavior. I could not find the cause.

freezing

Just updated to 064557c and emacs is freezing under the following conditions:

  • M-x cd # to project root
  • M-x nrepl-jack-in
  • C-x C-f # open a .clj file
  • do not C-c C-k
  • type anything

No problem if I C-x C-k in the current buffer, but I don't always remember to do that.

I believe this is related to a conflict between autocomplete and nrepl, but I'm not sure.

Overriding M-w from user-pack doesn't seem to work...

Of course it might be that I'm doing something wrong too, but with my emacs skills, I can't seem to be able to override the M-w.

I've created my own pack, placed the .emacs-live.el under home, loaded the pack, overridden the M-w in the config file that is loaded with my pack, but when I use M-w it still points to the one that is defined in the live/bindings-pack/config/default-bindings.el

In my Messages I can see that my bindings.el is loaded just after the default-bindings.el

Loading /Users/tarmo/.emacs.d/packs/live/bindings-pack/init.el (source)...
Loading /Users/tarmo/.emacs.d/packs/live/bindings-pack/config/default-bindings.el (source)...done
Loading /Users/tarmo/.emacs.d/packs/live/bindings-pack/init.el (source)...done
Loading /Users/tarmo/.emacs.d/packs/bleadof-pack/init.el (source)...
Loading /Users/tarmo/.emacs.d/packs/bleadof-pack/config/mac-keys.el (source)...done
Loading /Users/tarmo/.emacs.d/packs/bleadof-pack/config/auto-complete-conf.el (source)...done
Loading /Users/tarmo/.emacs.d/packs/bleadof-pack/config/bindings.el (source)...done
Loading /Users/tarmo/.emacs.d/packs/bleadof-pack/config/indent-all-conf.el (source)...done
Loading /Users/tarmo/.emacs.d/packs/bleadof-pack/init.el (source)...done

Do you have any pointers? Besides the obvious of course which is to comment out the ones in the default-bindings...

no paredit-mode in the clojure REPL anymore (clojure-swank)

Hi Sam,

Paredit is not activated in the REPL with clojure-swank as it used to before.

  • Last version working: 69b728cbe2 - update nrepl-eval-sexp-fu
  • Next commit breaks clojure-jack-in: 639ff6e4ec - update live packs to match dev work. See recent commits for history
  • The next one d1389fb742 - add missing pack files (should have been part of the previous commit) fixes the previous broken commit, but since then: no paredit-mode in the REPL by default

emacs-live is really beautifull, thank you very much for that !

D

ac-complete not writing selected completion

When auto-complete-mode is on, I can see the suggested auto-complete either through the previewed completion or the completion menu, but pressing tab (or any other method I've tried to call ac-complete, directly, or through rebinding other keys as an experiment) won't actually input the auto-completion into the file, but rather just exits from the auto-complete suggestions. This is true in both clojure-mode and emacs-lisp-mode, but nrepl-mode is allowing me to use tab to auto-complete...but isn't showing the auto-complete list/suggestion unless I hit tab twice to have it pull up the possibilities in another buffer.

ac-source-yasnippet breaks completion of ac-mode defined in user pack

I use emacs-live and an additional user-pack where i have the following definitions to have ac-completion in supercollider files.

(add-to-list 'ac-modes 'sclang-mode)
(add-to-list 'ac-user-dictionary-files "~/.local/share/SuperCollider/sclang_completion_dict")

However since you added ac-source-yasnippet to ac-source in auto-complete-conf.el, completion does not work anymore in supercollider files.

If i comment out ac-source-ysnippets completion works again in SC files.

Any ideas how to fix this without having to remove ac-source-yasnippet.

Thanks,
Peter

Symbol's function definition is void : yas--fom-set-next-fom

I update emacs-live to beta-6 and i found when i load *.c file
and type "printf" then use tab to complete

it disaplay

printf ("${1:%s}YASESCAPE92PROTECTGUARDn"${1:$(if (string-match "%" text) "," "YASESCAPE41PROTECTGUARD;")}$2${1:$(if (string-match "%" text) "YASESCAPE41PROTECTGUARD;" "")}

and the minbuffer display

Symbol's function definition is void : yas--fom-set-next-fom

i didn't load my config file just load emacs-live
i change the version back to beta-5 and this "bug" didn't happen.

i hope you can understand what i mean. my english is poor.

ritz debuggin for clojure

It'd be nice if the debugging functionality of ritz could be integrated in the clojure enviroinment.

That should amount to substituting the current nrepl component with ritz-nrepl and confugure accordingly

autocomplete bug

when autocomplete renders on the page, an empty grey box pops up- presumably to display the documentation for the command. Do you have any recommendations on troubleshooting this issue?

MacOS Lion
Emacs 24

el-get compatibility (easy fix) renaming

I have an incredibly easy bug to fix but serious issue for me to use emacs-live.

The file power-pack/lib/scratch/el-get.el causes loading problems for using el-get. In my personal version of emacs-live, I renamed the file to emacs-live-el-get-config.el and the two libraries loaded perfectly fine together.

Please rename the file power-pack/lib/scratch/el-get.el to power-pack/lib/scratch/emacs-live-el-get-config.el`

Thanks!

set-default-font is overridden by foundation-pack

I'm trying to use a different font, but regardless of what I do, my font setting gets overridden by foundation-pack. When I start Emacs and it loads emacs-live, I can actually see the font face/size changing to what I want and then quickly changing back to emacs-live default. I have even trying to add the set-default-font call to ~/.emacs.d/init.el.

I have spent enough time trying to figure this out, so I'm opening this issue. My emacs-live is latest from master as of today.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.