Giter Site home page Giter Site logo

jwiegley / dot-emacs Goto Github PK

View Code? Open in Web Editor NEW
665.0 50.0 95.0 200.61 MB

My .emacs.el file and other personal Emacs goodies

Home Page: http://www.newartisans.com

Emacs Lisp 62.79% Makefile 0.73% Shell 0.10% Perl 0.77% Python 0.69% CSS 0.64% HTML 0.49% TeX 0.14% Roff 33.04% YASnippet 0.62%

dot-emacs's Introduction

dot-emacs

My .emacs file and other personal Emacs goodies.

I keep my Emacs file in literate Org mode, so that it's easier to organize and also document how things are to be used, since there are enough packages that I often forget. You can view that document here:

https://github.com/jwiegley/dot-emacs/blob/master/init.org

NOTE: I no longer use git-subtree and submodules to track dependencies. Instead, everything is built and managed using Nix and Nix overlays: https://github.com/jwiegley/nix-config/blob/master/overlays/10-emacs.nix

dot-emacs's People

Contributors

dabrahams avatar gamb avatar jwiegley avatar mookid avatar sankalp-khare avatar

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

dot-emacs's Issues

Order of operations in .emacs?

I've got my forked version building clean, but I am having trouble with using the built resources in my .emacs itself. No matter where I load my settings.el, it keeps getting clobbered by things in init.el. It currently looks like this:

;; .emacs
;; set up load-path
(load-file "/home/emacs/load-path.el")
(require 'load-path)
(require 'autoloads)
(require 'cus-load)
(load-file "/home/emacs/settings.el")
(add-hook 'after-init-hook
          `(lambda ()
             (load-file "/home/emacs/init.el"))
          t)

How far off am I from your intended usage?

No submodule mapping found in .gitmodules for path 'site-lisp/yasnippet/snippets'

git clone --recursive https://github.com/jwiegley/dot-emacs

Results into:

Cloning into 'dot-emacs'...
remote: Counting objects: 73786, done.
remote: Compressing objects: 100% (489/489), done.
remote: Total 73786 (delta 296), reused 572 (delta 189), pack-reused 73095
Receiving objects: 100% (73786/73786), 169.78 MiB | 1.41 MiB/s, done.
Resolving deltas: 100% (42403/42403), done.
Checking connectivity... done.
Submodule 'lisp/alert' (git://github.com/jwiegley/alert.git) registered for path 'lisp/alert'
Submodule 'lisp/chess' (git://github.com/jwiegley/emacs-chess.git) registered for path 'lisp/chess'
Submodule 'lisp/emacs-async' (git://github.com/jwiegley/emacs-async.git) registered for path 'lisp/emacs-async'
Submodule 'lisp/emacs-pl' (git://github.com/jwiegley/emacs-pl.git) registered for path 'lisp/emacs-pl'
Submodule 'lisp/erc-yank' (git://github.com/jwiegley/erc-yank.git) registered for path 'lisp/erc-yank'
Submodule 'lisp/git-annex-el' (git://github.com/jwiegley/git-annex-el.git) registered for path 'lisp/git-annex-el'
Submodule 'lisp/git-undo-el' (git://github.com/jwiegley/git-undo-el.git) registered for path 'lisp/git-undo-el'
Submodule 'lisp/haskell-config' (git://github.com/jwiegley/haskell-config.git) registered for path 'lisp/haskell-config'
Submodule 'lisp/initsplit' (git://github.com/jwiegley/initsplit.git) registered for path 'lisp/initsplit'
Submodule 'lisp/use-package' (git://github.com/jwiegley/use-package.git) registered for path 'lisp/use-package'
Submodule 'site-lisp/auctex' (https://git.savannah.gnu.org/git/auctex.git) registered for path 'site-lisp/auctex'
Submodule 'site-lisp/magit' (git://github.com/jwiegley/magit.git) registered for path 'site-lisp/magit'
Submodule 'site-lisp/org-mode' (git://github.com/jwiegley/org-mode.git) registered for path 'site-lisp/org-mode'
fatal: no submodule mapping found in .gitmodules for path 'site-lisp/yasnippet/snippets'

Looks like this is caused by the recent changes to yasnippet b1ca219.
.

No url found for submodule path 'lib/emacs-request/doc/eldomain' in .gitmodules

└⋊> git clone --recursive https://github.com/jwiegley/dot-emacs emacs.d-jwiegley
Cloning into 'emacs.d-jwiegley'...
remote: Counting objects: 21727, done.
remote: Compressing objects: 100% (3/3), done.
Receiving objects: 100% (21727/21727), 78.69 MiB | 37.00 KiB/s, done.
remote: Total 21727 (delta 0), reused 0 (delta 0), pack-reused 21724
Resolving deltas: 100% (8635/8635), done.
Checking out files: 100% (2711/2711), done.
fatal: No url found for submodule path 'lib/emacs-request/doc/eldomain' in .gitmodules

bbdb-vcard-export record name change

Dear John,

While reading the page on the emacswiki: http://www.emacswiki.org/emacs/BbdbExporters I saw your comment saying: "I’ve ported this module to BBDB 3. – JohnWiegley" Keeping to the adage that no good deed shall go unpunished, I installed it in my spanking new arch linux system. However it crashed when I tried to use it. The latest bbdb which I installed via melpa (Version: 20131116.930) seems to have changed the name of the function bbdb-record-note to bbdb-record-xfield. Here is the diff that got it to work once again:

 130c130
 <         (notes (bbdb-record-xfield record 'note))
 ---
 >         (notes (bbdb-record-note record 'note))
 134c134
 <         (categories (bbdb-record-xfield record 'category)))
 ---
 >         (categories (bbdb-record-note record 'category)))

It is easily achieved by doing a query-replace bbdb-record-note -> bbdb-record-xfield

I hope this is helpful.

Best wishes,
Henry Laxen

Which key is <C-m> in :bind keyword in multiple cursor

Hi,

I am sorry to ask this, but I was not able to find out which key on my keyboard is
<C-m> in your multiple cursor configuration. Can you help me out with this?

(use-package multiple-cursors
  :after phi-search
  :defer 5

  ;; - Sometimes you end up with cursors outside of your view. You can scroll
  ;;   the screen to center on each cursor with `C-v` and `M-v`.
  ;;
  ;; - If you get out of multiple-cursors-mode and yank - it will yank only
  ;;   from the kill-ring of main cursor. To yank from the kill-rings of every
  ;;   cursor use yank-rectangle, normally found at C-x r y.

  :bind (("<C-m> ^"     . mc/edit-beginnings-of-lines)
         ("<C-m> `"     . mc/edit-beginnings-of-lines)
         ("<C-m> $"     . mc/edit-ends-of-lines)
         ("<C-m> '"     . mc/edit-ends-of-lines)
         ("<C-m> R"     . mc/reverse-regions)
         ("<C-m> S"     . mc/sort-regions)
         ("<C-m> W"     . mc/mark-all-words-like-this)
         ("<C-m> Y"     . mc/mark-all-symbols-like-this)
         ("<C-m> a"     . mc/mark-all-like-this-dwim)
         ("<C-m> c"     . mc/mark-all-dwim)
         ("<C-m> l"     . mc/insert-letters)
         ("<C-m> n"     . mc/insert-numbers)
         ("<C-m> r"     . mc/mark-all-in-region)
         ("<C-m> s"     . set-rectangular-region-anchor)
         ("<C-m> %"     . mc/mark-all-in-region-regexp)
         ("<C-m> t"     . mc/mark-sgml-tag-pair)
         ("<C-m> w"     . mc/mark-next-like-this-word)
         ("<C-m> x"     . mc/mark-more-like-this-extended)
         ("<C-m> y"     . mc/mark-next-like-this-symbol)
         ("<C-m> C-x"   . reactivate-mark)
         ("<C-m> C-SPC" . mc/mark-pop)
         ("<C-m> ("     . mc/mark-all-symbols-like-this-in-defun)
         ("<C-m> C-("   . mc/mark-all-words-like-this-in-defun)
         ("<C-m> M-("   . mc/mark-all-like-this-in-defun)
         ("<C-m> ["     . mc/vertical-align-with-space)
         ("<C-m> {"     . mc/vertical-align)

         ("S-<down-mouse-1>")
         ("S-<mouse-1>" . mc/add-cursor-on-click))

  :bind (:map selected-keymap
              ("c"   . mc/edit-lines)
              ("."   . mc/mark-next-like-this)
              ("<"   . mc/unmark-next-like-this)
              ("C->" . mc/skip-to-next-like-this)
              (","   . mc/mark-previous-like-this)
              (">"   . mc/unmark-previous-like-this)
              ("C-<" . mc/skip-to-previous-like-this)
              ("y"   . mc/mark-next-symbol-like-this)
              ("Y"   . mc/mark-previous-symbol-like-this)
              ("w"   . mc/mark-next-word-like-this)
              ("W"   . mc/mark-previous-word-like-this))

  :preface
  (defun reactivate-mark ()
    (interactive)
    (activate-mark)))

Thanks.

agenda background color according to file/category

Hi,

Thanks for the insight of your September talk, I watched it very closely to learn how you're dealing with everyday org issues I also do face too well.

I just studied your repo here but could not find out how you are applying different background colors to complete lines within your agenda (only) according to the file/category.

  • org-tag-faces -> only tags
  • org-todo-keyword-faces -> only keywords

So how are you accomplishing this?

Thanks for your time!

`'after-init-hook` question

Hi John, I was wondering if there was some reason for quasi-quoting the function that is passed to 'after-init-hook in init.el?

(add-hook 'after-init-hook
          `(lambda ()
             (setq file-name-handler-alist file-name-handler-alist-old
                   gc-cons-threshold 800000
                   gc-cons-percentage 0.1)
             (garbage-collect)) t)

Font in modeline

I have been trying (and studying) your .emacs.d. It is wonderfully fast! After cloning with git clone --recursive https://github.com/jwiegley/dot-emacs .emacs.d I seem to have all the requirements (beside a missing mail checking app).

I have also enabled the font Source Pro, and Myriad Pro, as in init.el. Still, it seems I am missing one font:

screen shot 2015-05-17 at 18 00 16

Which font is that one?

Thank you for your code! Really instructive.

Are you still using the M-x customize interface?

Hi John!

I noticed in your recent move to a literate configuration you now store customisations in :custom rather than a blob of settings inside custom-set-variables.

I'd like to do the same but the thing that prohibits me is I still like to use M-x customize-variable quite a lot and as far as I know there isn't a package that will route these to the applicable :custom block, something like the way you described here jwiegley/use-package#517 (comment)

Did you find a solution to this or did you just adapt your workflow?

cyclic function indirection

Debugger entered--Lisp error: (cyclic-function-indirection easy-mmode-define-minor-mode)
  (define-minor-mode org-src-mode "Minor mode for language major mode buffers generated by org.\nThis minor mode is turned on in two situations:\n- when editing a source code snippet with \"C-c '\".\n- When formatting a source code snippet for export with htmlize.\nThere is a mode hook, and keybindings for `org-edit-src-exit' and\n`org-edit-src-save'")
  eval-buffer(#<buffer  *load*<4>> nil "/Users/dave/Library/Emacs/site-lisp/org-mode/lisp/org-src.el" nil t)  ; Reading at buffer position 7678
  load-with-code-conversion("/Users/dave/Library/Emacs/site-lisp/org-mode/lisp/org-src.el" "/Users/dave/Library/Emacs/site-lisp/org-mode/lisp/org-src.el" nil t)
  require(org-src)
  eval-buffer(#<buffer  *load*<3>> nil "/Users/dave/Library/Emacs/site-lisp/org-mode/lisp/ob-tangle.el" nil t)  ; Reading at buffer position 1056
  load-with-code-conversion("/Users/dave/Library/Emacs/site-lisp/org-mode/lisp/ob-tangle.el" "/Users/dave/Library/Emacs/site-lisp/org-mode/lisp/ob-tangle.el" nil t)
  require(ob-tangle)
  eval-buffer(#<buffer  *load*<2>> nil "/Users/dave/Library/Emacs/.org.el" nil t)  ; Reading at buffer position 9187
  load-with-code-conversion("/Users/dave/Library/Emacs/.org.el" "/Users/dave/Library/Emacs/.org.el" t nil)
  load(".org" t)
  (lambda (name) (load name t))(".org")
  mapc((lambda (name) (load name t)) (".org" "browse-kill-ring+" "diminish" "ess-site" "flyspell-ext" "gist" "ldg-new" "magit" "session" "whitespace" "yasnippet"))
  eval-buffer(#<buffer  *load*> nil "/Users/dave/.wiegleymacs" nil t)  ; Reading at buffer position 11414
  load-with-code-conversion("/Users/dave/.wiegleymacs" "/Users/dave/.wiegleymacs" nil nil)
  load("/Users/dave/.wiegleymacs" nil nil t)
  load-file("~/.wiegleymacs")
  call-interactively(load-file t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)

Org-mode subrepo issue when pulling

Hi,

When I pull dot-emacs I get:

fatal: reference is not a tree: 81a77c3ba9618a9ff28f5d22a4cdabb6d32230b7
Unable to checkout '81a77c3ba9618a9ff28f5d22a4cdabb6d32230b7' in submodule path 'override/org-mode'

I am using GNU Emacs 24.1.50.1 (i386-apple-darwin11.4.0, NS apple-appkit-1138.4

Very nice set-up, thank you for making it available.

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.