Code Monkey home page Code Monkey logo

emacs.d's Introduction

My emacs config

Here is my latest incantation of an emacs config. This time, I am going for a more minimal config, but trying to keep the more full featured config just in case I need it. To do this, I am using some alias in my bashrc

Alias

So normal emacs will be in the terminal and will not load packages (although there a few things I put in site-lisp that will get loaded). The pemacs command will load the basic config and then load packages for a more full featured experience, but still in terminal. The gemacs command will launch the same emacs as pemacs but will launch the gui version. These assume EMACS_HOME is set.

alias emacs="${EMACS_HOME}/bin/emacs -nw"
alias pemacs="${EMACS_HOME}/bin/emacs -Q -nw -l ${HOME}/emacs.d/init-elpa.el"
alias gemacs="${EMACS_HOME}/bin/emacs -Q -l ${HOME}/emacs.d/init-elpa.el"

Git editor

export GIT_EDITOR='${EMACS_HOME}/bin/emacs -Q -nw -l ${HOME}/emacs.d/init-git-editor.el'

Script

Talk about bin directory, which I don't really use anymore

Profiling

Look at https://www.emacswiki.org/emacs/ProfileDotEmacs

Downloaded file http://www.randomsample.de/profile-dotemacs.el to ~/.emacs.d/src/profile-dotemacs.el

Edit file and change defvar profile-dotemacs-file from ~/.emacs to ~/.emacs.d/init.el

Then run

emacs -Q -l src/profile-dotemacs.el -f profile-dotemacs

Look for file for overlays of slow expressions

Rebuilding packages

To rebuild all packages, run

M-: (byte-recompile-directory package-user-dir nil 'force)

To recompile

C-u 0 M-x byte-recompile-directory

Then choose ~/.emacs.d/site-lisp

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.