General
git clone git@github.com:munen/emacs.d.git ~/.emacs.d
Dependencies
Emacs dependencies/libraries are managed via the internal
package management system. To
initially install packages, open ~/.emacs.d/init.el
, refresh your
package list with M-x package-refresh-contents
and install
everything using M-x eval-buffer
.
A leightweight implementation of the Pomodoro Technique is
implemented in customizing orgmode in init.el
. For every Clock that
is started (C-c C-x C-i
) an automatic Timer is scheduled to
25min. After these 25min are up, a "Time to take a break!" message is
played and a pop-up notification is shown.
The timer is not automatically stopped on clocking out, because clocking in should still work on new tasks without resetting the Pomodoro.
The timer can manyally be stopped with M-x org-timer-stop
.
A break can be started with M-x pomodoro-break
. A pomodoro can also
manually be started without clocking in via M-x pomodoro-start
.
https://github.com/clojure-emacs/cider
M-x cider-jack-in
To start REPLC-c C-k
Evaluate current bufferC-c M-n
Change ns in cider-nrepl to current nsC-c C-d C-d
Display documentation for the symbol under pointC-c C-d C-a
Apropos search for arbitrary text across function names and documentation
** CIDER REPL Key Bindings **
C-↑, C-↓
Cycle through REPL history.
More Cider shortcuts here.
Dependencies
Create a ~/.lein/profiles.clj
file with:
{:user {:plugins [[cider/cider-nrepl "0.13.0-SNAPSHOT"]
[refactor-nrepl "2.2.0"]]
:dependencies [[org.clojure/tools.nrepl "0.2.12"]]}}
https://github.com/netguy204/imp.el
Enable the web server provided by simple-httpd:
M-x httpd-start
Publish buffers by enabling the minor mode impatient-mode.
M-x impatient-mode
And then point your browser to http://localhost:8080/imp/, select a buffer, and watch your changes appear as you type!
JavaScript is improved with js2-mode
as well as Tern.
Tern is a stand-alone code-analysis engine for JavaScript used for:
* Auto completion on variables and properties
* Function argument hints
* Querying the type of an expression
* Finding the definition of something
* Automatic refactoring
Tern is installed as an NPM package: npm install -g tern
.
To enable Tern in emacs, also the tern
and tern-auto-complete
packages are installed.
For completion to work in a Node.js project, a .tern-project
file like this is required:
{"plugins": {"node": {}}}
or
{"libs": ["browser", "jquery"]}
Here is more documentation on how to configure a Tern project.
Tern shortcuts:
M-.
Jump to the definition of the thing under the cursor.M-,
Brings you back to last place you were when you pressed M-..C-c C-r
Rename the variable under the cursor.C-c C-c
Find the type of the thing under the cursor.C-c C-d
Find docs of the thing under the cursor. Press again to open the associated URL (if any).
As MTA MU4E is used. As SMTP Emacs smtpmail package.
MU works on a local Maildir folder, for synching that offlineimap
is
used. To install:
brew install offlineimap
For MU4E to work, install MU and MU4E:
brew install mu --with-emacs
For starttls to work when sending mail, install gnutls:
brew install gnutls