Giter Club home page Giter Club logo

emacs.d's Introduction

Installation

General git clone [email protected]: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.

orgmode

Pomodoro

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.

Clojure

Cider

https://github.com/clojure-emacs/cider

  • M-x cider-jack-in To start REPL
  • C-c C-k Evaluate current buffer
  • C-c M-n Change ns in cider-nrepl to current ns
  • C-c C-d C-d Display documentation for the symbol under point
  • C-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"]]}}

Impatient Mode - Live Coding Emacs/Browser

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

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).

Mail

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

emacs.d's People

Contributors

munen avatar jcfischer avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

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.