[Emacs] Respace stuff

This commit is contained in:
Ivan Malison 2017-07-29 00:32:45 -07:00
parent aa88018bab
commit e0cea5ef10
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -17,8 +17,8 @@ others:
** How I generate http://ivanmalison.github.io/dotfiles/ ** How I generate http://ivanmalison.github.io/dotfiles/
*** org-export *** org-export
**** travis-ci **** travis-ci
[[https://github.com/IvanMalison/dotfiles/tree/master/gen-gh-pages][This directory]] contains a collection of scripts that exports this org document to html. [[https://github.com/IvanMalison/dotfiles/tree/master/gen-gh-pages][This directory]] contains a collection of scripts that exports this org document
The approach is taken (with only a few modifications) from [[https://gist.github.com/domenic/ec8b0fc8ab45f39403dd][here]]. to html. The approach is taken (with only a few modifications) from [[https://gist.github.com/domenic/ec8b0fc8ab45f39403dd][here]].
**** githook (The old way) **** githook (The old way)
NOTE: I've left this here in case other people have an interest in this method, NOTE: I've left this here in case other people have an interest in this method,
but I no longer use it. but I no longer use it.
@ -29,7 +29,8 @@ README.org (essentially this document) . These should work no matter where they
are placed in a repository. The org-mode file that they target is set [[https://github.com/IvanMalison/dotfiles/blob/16a4f6c3aadef39a45d30c15e8637b40858721ea/dotfiles/emacs.d/bin/util.sh#L4][here]] and are placed in a repository. The org-mode file that they target is set [[https://github.com/IvanMalison/dotfiles/blob/16a4f6c3aadef39a45d30c15e8637b40858721ea/dotfiles/emacs.d/bin/util.sh#L4][here]] and
should be relatively easy to change. should be relatively easy to change.
*** [[https://github.com/fniessen/org-html-themes][Read The Org]] *** [[https://github.com/fniessen/org-html-themes][Read The Org]]
I use [[https://github.com/fniessen][fniessen]]'s ReadTheOrg theme which can be found at https://github.com/fniessen/org-html-themes. I use [[https://github.com/fniessen][fniessen]]'s ReadTheOrg theme which can be found at
https://github.com/fniessen/org-html-themes.
*** Predictable and Human Readable Heading Links *** Predictable and Human Readable Heading Links
To make it so that internal heading links have names that correspond to the To make it so that internal heading links have names that correspond to the
heading text, and don't change when new headings are added to the document, I heading text, and don't change when new headings are added to the document, I
@ -45,9 +46,11 @@ this.
I'm considering turning this snippet in to a package, so please let me know if I'm considering turning this snippet in to a package, so please let me know if
that is something you are interested in. that is something you are interested in.
*** [[Add link icons in headings that lead to themselves][Add link icons in headings that lead to themselves]] *** [[Add link icons in headings that lead to themselves][Add link icons in headings that lead to themselves]]
This is another pretty nasty hack. This is useful when you are browsing the document and you want to grab a link to the current heading. This is another pretty nasty hack. This is useful when you are browsing the
document and you want to grab a link to the current heading.
*** Set Background Color Source Blocks *** Set Background Color Source Blocks
For some reason, org-mode uses all of your currently active fontification when exporting EXCEPT for background color. [[Set Background Color of Source Blocks for Export][This]] modification fixes this. For some reason, org-mode uses all of your currently active fontification when
exporting EXCEPT for background color. [[Set Background Color of Source Blocks for Export][This]] modification fixes this.
** [[frame-mode][Custom frame control]] ** [[frame-mode][Custom frame control]]
My custom [[frame-mode]] stuff is built to integrate really nicely with xmonad. I My custom [[frame-mode]] stuff is built to integrate really nicely with xmonad. I
think its pretty awesome! think its pretty awesome!
@ -57,8 +60,10 @@ think its pretty awesome!
+ [[Font Size][Font Size]] functions and an [[fontsizehydra][Awesome Hydra]] for them + [[Font Size][Font Size]] functions and an [[fontsizehydra][Awesome Hydra]] for them
+ [[downloadfile][Download a file into a buffer]] (curl straight into a file) + [[downloadfile][Download a file into a buffer]] (curl straight into a file)
+ [[editscript][Edit a script on $PATH]] + [[editscript][Edit a script on $PATH]]
+ [[Copy/Yanking][Copy Portions of Buffer File Path Hydra]] and the associated [[Copy/Yank String Functions][Copy String Functions]] + [[Copy/Yanking][Copy Portions of Buffer File Path Hydra]] and the associated
+ [[namedbuild][Named Build of Builder Macros]] ([[https://github.com/IvanMalison/emit#named-builder][README]]) and [[composemacros][A Compose Supporting Macros]] ([[https://github.com/IvanMalison/emit#compose][README]]) [[Copy/Yank String Functions][Copy String Functions]]
+ [[namedbuild][Named Build of Builder Macros]] ([[https://github.com/IvanMalison/emit#named-builder][README]]) and [[composemacros][A Compose Supporting Macros]]
([[https://github.com/IvanMalison/emit#compose][README]])
** Configuration of My Own Packages ** Configuration of My Own Packages
- [[term-projectile][term-projectile]] and [[term-manager][term-manager]] - [[term-projectile][term-projectile]] and [[term-manager][term-manager]]
- [[org-projectile][org-projectile]] - [[org-projectile][org-projectile]]
@ -71,7 +76,6 @@ think its pretty awesome!
My programming language major mode configurations can all be found [[programminglanguages][here]]. My programming language major mode configurations can all be found [[programminglanguages][here]].
** [[org][org-mode]] ** [[org][org-mode]]
My [[org][org-mode]] configuration is pretty comprehensive, but not super well commented. My [[org][org-mode]] configuration is pretty comprehensive, but not super well commented.
* HTML Headers * HTML Headers
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="http://www.pirilampo.org/styles/readtheorg/css/htmlize.css"/> #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="http://www.pirilampo.org/styles/readtheorg/css/htmlize.css"/>
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="http://www.pirilampo.org/styles/readtheorg/css/readtheorg.css"/> #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="http://www.pirilampo.org/styles/readtheorg/css/readtheorg.css"/>
@ -395,12 +399,11 @@ Works in the same way as os.path.join in python
(defmacro imalison:use-package* (package target-github-name &rest forms) (defmacro imalison:use-package* (package target-github-name &rest forms)
(let* ((clone-url (let* ((clone-url
(format "git@github.com:IvanMalison/%s" target-github-name)) (format "git@github.com:IvanMalison/%s" target-github-name)))
(target-directory `(imalison:use-package** ,package ,target-github-name ,clone-url ,@forms)))
(imalison:join-paths imalison:projects-directory target-github-name)))
`(imalison:use-package** ,package ,target-directory ,clone-url ,@forms)))
(defmacro imalison:use-package** (package target-directory target-clone-url &rest forms) (defmacro imalison:use-package** (package target-dir target-clone-url &rest forms)
(let ((target-directory (imalison:join-paths imalison:projects-directory target-dir)))
`(progn `(progn
(or (file-exists-p ,target-directory) (or (file-exists-p ,target-directory)
(equal (call-process (equal (call-process
@ -410,7 +413,7 @@ Works in the same way as os.path.join in python
:load-path ,target-directory :load-path ,target-directory
:ensure nil :ensure nil
:preface :preface
,@forms))) ,@forms))))
(defmacro imalison:use-package (package &rest forms) (defmacro imalison:use-package (package &rest forms)
`(imalison:use-package* ,package ,(symbol-name package) ,@forms)) `(imalison:use-package* ,package ,(symbol-name package) ,@forms))
@ -2627,7 +2630,7 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877
(add-hook 'scala-mode-hook 'ensime-scala-mode-hook) (add-hook 'scala-mode-hook 'ensime-scala-mode-hook)
(setq scala-indent:align-parameters t))) (setq scala-indent:align-parameters t)))
#+END_SRC #+END_SRC
*** js *** javascript
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(defun tape-onlyify () (defun tape-onlyify ()
(interactive) (interactive)
@ -4826,7 +4829,6 @@ Set the character used to represent spaces to ·, and the character used for tab
'((space-mark 32 [183] [46]) '((space-mark 32 [183] [46])
(tab-mark 9 [9655 9] [92 9]))) (tab-mark 9 [9655 9] [92 9])))
#+END_SRC #+END_SRC
** Colorize Compliation Buffers ** Colorize Compliation Buffers
This automatically applies ansi-color interpretation of terminal escape This automatically applies ansi-color interpretation of terminal escape
sequences to compilation buffers. sequences to compilation buffers.