Some blog post tweaks
This commit is contained in:
parent
f89f8639a2
commit
c7712fff53
4 changed files with 54 additions and 42 deletions
|
@ -1,4 +1,8 @@
|
||||||
#+TITLE: C-d to close eshell
|
#+TITLE:
|
||||||
|
#+OPTIONS: toc:nil
|
||||||
|
#+HTML_LINK_UP: ../blog.html
|
||||||
|
|
||||||
|
* C-d to close eshell :eshell:emacs:elisp:config:
|
||||||
|
|
||||||
One of the "tricks" that I have learned to use when working with
|
One of the "tricks" that I have learned to use when working with
|
||||||
terminals is using ~C-d~ to close them, or when working on a TTY
|
terminals is using ~C-d~ to close them, or when working on a TTY
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#+OPTIONS: toc:nil c:t
|
#+OPTIONS: toc:nil c:t
|
||||||
#+HTML_LINK_UP: ../blog.html
|
#+HTML_LINK_UP: ../blog.html
|
||||||
|
|
||||||
* Mounting music dir before MPD :systemd:mpd:conf:
|
* Mounting music dir before MPD :systemd:mpd:config:
|
||||||
|
|
||||||
Systemd allows you to specify a program to run before running the main
|
Systemd allows you to specify a program to run before running the main
|
||||||
daemon (or program) with =ExecStartPre=. This can, for instance, be used
|
daemon (or program) with =ExecStartPre=. This can, for instance, be used
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
#+TITLE: rlwrapping sbcl
|
#+TITLE:
|
||||||
|
#+OPTIONS: toc:nil
|
||||||
|
#+HTML_LINK_UP: ../blog.html
|
||||||
|
|
||||||
|
* rlwrapping sbcl :sbcl:lisp:utility:
|
||||||
|
|
||||||
[[http://sbcl.org][SBCL]] is an excellent lisp implementation. The only thing that's not so
|
[[http://sbcl.org][SBCL]] is an excellent lisp implementation. The only thing that's not so
|
||||||
nice about it is overly simple command-line interface. The absence of
|
nice about it is overly simple command-line interface. The absence of
|
||||||
|
|
|
@ -1,56 +1,60 @@
|
||||||
#+TITLE: Some quick git diff tips
|
#+TITLE:
|
||||||
|
#+OPTIONS: toc:nil
|
||||||
|
#+HTML_LINK_UP: ../blog.html
|
||||||
|
|
||||||
|
* Some quick git diff tips :org:lisp:config:
|
||||||
|
|
||||||
A couple of quick tips. As you possibly know you can specify some
|
A couple of quick tips. As you possibly know you can specify some
|
||||||
options to be used for diffs (and other things) per file type. The
|
options to be used for diffs (and other things) per file type. The
|
||||||
one I'm interested in is the function name.
|
one I'm interested in is the function name.
|
||||||
|
|
||||||
* For org-mode
|
** For org-mode
|
||||||
|
|
||||||
The primary way of identifying which part of an org-mode document
|
The primary way of identifying which part of an org-mode document
|
||||||
a change occurs in seems to me to be the heading. So, in your
|
a change occurs in seems to me to be the heading. So, in your
|
||||||
~$HOME/.gitconfig~ put:
|
~$HOME/.gitconfig~ put:
|
||||||
|
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
[diff "org"]
|
[diff "org"]
|
||||||
xfuncname = "^\\*+.*"
|
xfuncname = "^\\*+.*"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Which should show any lines starting with one or more ~*~
|
Which should show any lines starting with one or more ~*~
|
||||||
characters. And then in ~$XDG_CONFIG_HOME/git/attributes~ or
|
characters. And then in ~$XDG_CONFIG_HOME/git/attributes~ or
|
||||||
~$HOME/.config/git/attributes~ put:
|
~$HOME/.config/git/attributes~ put:
|
||||||
|
|
||||||
#+BEGIN_EXAMPLE
|
#+BEGIN_EXAMPLE
|
||||||
,*.org diff=org
|
,*.org diff=org
|
||||||
#+END_EXAMPLE
|
#+END_EXAMPLE
|
||||||
|
|
||||||
* For lisp and lisp-like langauges
|
** For lisp and lisp-like langauges
|
||||||
|
|
||||||
For anything that resembles lisp (so Common Lisp, Emacs Lisp, Hy,
|
For anything that resembles lisp (so Common Lisp, Emacs Lisp, Hy,
|
||||||
scheme, etc.) I would think that the easiest thing to do is just
|
scheme, etc.) I would think that the easiest thing to do is just
|
||||||
see the closes top-level form. So, in your ~$HOME/.gitconfig~ put:
|
see the closes top-level form. So, in your ~$HOME/.gitconfig~ put:
|
||||||
|
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
[diff "lisp"]
|
[diff "lisp"]
|
||||||
xfuncname = "^\\([^ ]+ [^ ]+"
|
xfuncname = "^\\([^ ]+ [^ ]+"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
Which should show the opening parenthesis and the first two words.
|
Which should show the opening parenthesis and the first two words.
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
#+BEGIN_EXAMPLE
|
#+BEGIN_EXAMPLE
|
||||||
(defun some-function-name
|
(defun some-function-name
|
||||||
(defclass my-awesome-class
|
(defclass my-awesome-class
|
||||||
(define-route this-strange-route
|
(define-route this-strange-route
|
||||||
#+END_EXAMPLE
|
#+END_EXAMPLE
|
||||||
|
|
||||||
And then put in your ~$XDG_CONFIG_HOME/git/attributes~ or
|
And then put in your ~$XDG_CONFIG_HOME/git/attributes~ or
|
||||||
~$HOME/.config/git/attributes~:
|
~$HOME/.config/git/attributes~:
|
||||||
|
|
||||||
#+BEGIN_EXAMPLE
|
#+BEGIN_EXAMPLE
|
||||||
,*.lisp diff=lisp
|
,*.lisp diff=lisp
|
||||||
,*.el diff=lisp
|
,*.el diff=lisp
|
||||||
,*.hy diff=lisp
|
,*.hy diff=lisp
|
||||||
,*.scm diff=lisp
|
,*.scm diff=lisp
|
||||||
#+END_EXAMPLE
|
#+END_EXAMPLE
|
||||||
|
|
||||||
And possibly any other lisp-like language files you can think of.
|
And possibly any other lisp-like language files you can think of.
|
||||||
|
|
Loading…
Reference in a new issue