Compare commits
143 Commits
Author | SHA1 | Date | |
---|---|---|---|
87b37aadbe | |||
a87bcffba7 | |||
4cdb694132 | |||
7606482c8e | |||
c5dd1e4aa8 | |||
4f741497d1 | |||
47c0d61301 | |||
10faa3b170 | |||
f4ecdb518e | |||
b1f2df7e75 | |||
828448680a | |||
519f7acf1a | |||
d975584e25 | |||
6a50199652 | |||
5351cde10d | |||
5cd85a35ca | |||
f9b50a7af7 | |||
3130097949 | |||
0f7935da32 | |||
1cf60c50ef | |||
38c2dacedc | |||
d8eb235b25 | |||
2c18b4c70a | |||
c39e8c2bbf | |||
6987cb93dc | |||
07725bdf2f | |||
d9dd5acd15 | |||
5b55077411 | |||
47abe6c958 | |||
60307f6432 | |||
5b0156d951 | |||
4d59042b60 | |||
927753fbd5 | |||
847c65ddc0 | |||
fe79b09035 | |||
a2635593e8 | |||
75342a80fc | |||
8e320b2db6 | |||
e66540149d | |||
3011905d2b | |||
4d7a2795a4 | |||
12a66c6ee7 | |||
93851abbe2 | |||
76d99e522a | |||
d2c81b01f5 | |||
b66589eb83 | |||
1ab3596465 | |||
02fe027e61 | |||
c058cfe853 | |||
3539accfb1 | |||
ade76106df | |||
6f51d5133f | |||
7faa3b099a | |||
38fdccda58 | |||
e17223828e | |||
cde06cd98d | |||
224c12a060 | |||
2ab396a5fe | |||
4c11f8190d | |||
1a90cb599f | |||
9873a7d3ed | |||
f46f550efb | |||
71ccdfc43b | |||
f7c91a882d | |||
87e0fb1b74 | |||
8290095a01 | |||
05052c21c6 | |||
9abf160081 | |||
afc5474af6 | |||
f068563eae | |||
86cc519270 | |||
eb1d6af07e | |||
5379c3ab13 | |||
e7b1422f62 | |||
db1d1dd95d | |||
52bcb80a3f | |||
4709929f5b | |||
67acc6c258 | |||
c7a948c9da | |||
b5132f05b5 | |||
ea6c5549cb | |||
fe3a358900 | |||
984f2146e2 | |||
b0879b8b91 | |||
875dd97786 | |||
d2d5f8e267 | |||
6e0b245d34 | |||
989125b0b2 | |||
e0367111d2 | |||
31bb9c922f | |||
1849204a57 | |||
53876320dc | |||
ec2818c4b9 | |||
71a2ff9022 | |||
15da1c7d85 | |||
f8bbc15cd5 | |||
c91421c3f8 | |||
32e07598b7 | |||
365a2a00f4 | |||
0682d7df78 | |||
a301db6205 | |||
715a53f417 | |||
0645426162 | |||
17263b41fd | |||
2bc338371e | |||
f006617927 | |||
8be18afab7 | |||
ebcaf1c6da | |||
23b8a3a2ac | |||
0fdc67dffe | |||
0d9deef614 | |||
f9028e6c9c | |||
0b00baff99 | |||
87137be645 | |||
e13a6d9173 | |||
2c490cfc36 | |||
a6bd9c62c2 | |||
c43df73208 | |||
354d1ea52d | |||
5f08005ef2 | |||
67fc81169a | |||
9eac9766cb | |||
8f00b92bcf | |||
d6e8e7000f | |||
857d01b3d0 | |||
c1d777c365 | |||
ee064eed75 | |||
bdb9a52357 | |||
aa930b3aff | |||
57771a1c91 | |||
b77b8d63bd | |||
c971892569 | |||
5ab0061e2e | |||
c8a4c1587f | |||
904704668f | |||
2ceecc5a21 | |||
16e31aec48 | |||
4adf6f702d | |||
86eee97bd1 | |||
f875a518ee | |||
7796a31ee5 | |||
6779653716 | |||
9723c30269 |
File diff suppressed because one or more lines are too long
1
.gitignore
vendored
1
.gitignore
vendored
@ -47,6 +47,7 @@
|
||||
# Forge database
|
||||
/forge-database.sqlite
|
||||
/forge-database-v*.sql
|
||||
/forge-database-v*.sqlite
|
||||
|
||||
# request.el cookie jars
|
||||
/request/curl-cookie-jar
|
||||
|
@ -19,6 +19,7 @@
|
||||
gpolonkai/duplicate-line
|
||||
gpolonkai/move-to-beginning-of-line
|
||||
gpolonkai/move-to-end-of-line
|
||||
gpolonkai/org-space-key
|
||||
hungry-delete-backward
|
||||
hungry-delete-forward
|
||||
indent-for-tab-command
|
||||
@ -35,7 +36,6 @@
|
||||
org-meta-return
|
||||
org-return
|
||||
org-self-insert-command
|
||||
org-space-key
|
||||
org-yank
|
||||
overwrite-mode
|
||||
sp-backward-delete-char
|
||||
@ -45,6 +45,7 @@
|
||||
sp-kill-region
|
||||
sp-kill-word
|
||||
sp-remove-active-pair-overlay
|
||||
sp-rewrap-sexp
|
||||
sp-unwrap-sexp
|
||||
toggle-char-case
|
||||
upcase-region
|
||||
|
5337
configuration.org
5337
configuration.org
File diff suppressed because it is too large
Load Diff
@ -1,75 +0,0 @@
|
||||
# git show :stage:filename
|
||||
# common ancestor: 1
|
||||
# HEAD: 2
|
||||
# MERGE_HEAD: 3
|
||||
|
||||
import re
|
||||
from subprocess import Popen, PIPE
|
||||
import sys
|
||||
|
||||
BASE = 1
|
||||
HEAD = 2
|
||||
MERGE_HEAD = 3
|
||||
FINAL = 0
|
||||
|
||||
outputs = {}
|
||||
|
||||
for stage in (BASE, HEAD, MERGE_HEAD):
|
||||
p = Popen(['git', 'show', f':{stage}:keyfreq'], stdout=PIPE, stderr=PIPE)
|
||||
output, err = p.communicate()
|
||||
|
||||
if p.returncode:
|
||||
print(output)
|
||||
sys.exit(1)
|
||||
|
||||
outputs[stage] = {}
|
||||
|
||||
output = output.decode('utf-8')[1:-1].split('\n')
|
||||
|
||||
for line in output:
|
||||
line = line.strip()
|
||||
|
||||
if not line:
|
||||
continue
|
||||
|
||||
if '"' in line:
|
||||
continue
|
||||
|
||||
m = re.match(r'^\(\(([^) ]+) .\ ([^) ]+)\) \. ([0-9]+)\)$', line)
|
||||
|
||||
if not m:
|
||||
raise ValueError(f'Invalid cons cell: {line}')
|
||||
|
||||
mode, command, count = m.groups()
|
||||
count = int(count)
|
||||
|
||||
outputs[stage].setdefault(mode, {})
|
||||
outputs[stage][mode][command] = count
|
||||
|
||||
|
||||
outputs[FINAL] = {}
|
||||
|
||||
for stage in (BASE, HEAD, MERGE_HEAD):
|
||||
for mode in outputs[stage]:
|
||||
outputs[FINAL][mode] = {}
|
||||
|
||||
for command, count in outputs[stage][mode].items():
|
||||
base_mode = outputs[BASE].get(mode, {})
|
||||
base_count = base_mode.get(command, 0)
|
||||
this_count = outputs[stage][mode][command]
|
||||
|
||||
outputs[FINAL][mode].setdefault(command, base_count)
|
||||
|
||||
if stage != BASE:
|
||||
outputs[FINAL][mode][command] += this_count - base_count
|
||||
|
||||
output = '('
|
||||
for mode in outputs[FINAL]:
|
||||
for command, count in outputs[FINAL][mode].items():
|
||||
output += f'(({mode} . {command}) . {count})\n'
|
||||
|
||||
output = output[:-1] + ')'
|
||||
|
||||
with open('keyfreq', 'w') as f:
|
||||
f.write(output)
|
||||
|
@ -1,20 +0,0 @@
|
||||
# Installing
|
||||
Add the following hook to your emacs conf:
|
||||
|
||||
```elisp
|
||||
(add-hook 'eshell-load-hook 'nyan-prompt-enable)
|
||||
```
|
||||
|
||||
# Why
|
||||
James J Porter showed me nyan-mode. I love nyan cat but hate scroll bars. I wanted to bring nyan-cat to my emacs so I found a middle way.
|
||||
|
||||
# How could you enhance the awesomeness.
|
||||
* Make nyan-cat move!
|
||||
* Make it a multline prompt with the rainbow taking up the folder space
|
||||
* Unite with nyan-mode and see where else can we stick nyan cat in?
|
||||
|
||||
# License
|
||||
Copying is an act of Love, please copy.
|
||||
|
||||
# Author
|
||||
Javier Olaechea (<pirata@gmail.com>), 2013.
|
@ -1,167 +0,0 @@
|
||||
/* XPM */
|
||||
static char * nyan_xpm[] = {
|
||||
"25 15 149 2",
|
||||
" c None",
|
||||
". c #522244",
|
||||
"+ c #3F1E31",
|
||||
"@ c #403326",
|
||||
"# c #2C2F32",
|
||||
"$ c #002D5B",
|
||||
"% c #003366",
|
||||
"& c #BF1119",
|
||||
"* c #7C0B10",
|
||||
"= c #947256",
|
||||
"- c #FFCC99",
|
||||
"; c #FFBBBB",
|
||||
"> c #FFB3CC",
|
||||
", c #FFC7A2",
|
||||
"' c #D8AD82",
|
||||
") c #3A3C3E",
|
||||
"! c #F52A02",
|
||||
"~ c #490C00",
|
||||
"{ c #F0C090",
|
||||
"] c #FFBCB9",
|
||||
"^ c #FF9DF7",
|
||||
"/ c #FF99FF",
|
||||
"( c #FF5FC5",
|
||||
"_ c #FF6BD1",
|
||||
": c #FF8DF3",
|
||||
"< c #FFA6E6",
|
||||
"[ c #745D46",
|
||||
"} c #002850",
|
||||
"| c #FC7800",
|
||||
"1 c #4C2400",
|
||||
"2 c #F0B6A2",
|
||||
"3 c #FF66CC",
|
||||
"4 c #FF92F8",
|
||||
"5 c #D882D8",
|
||||
"6 c #C576C5",
|
||||
"7 c #FF8AF0",
|
||||
"8 c #FF94FA",
|
||||
"9 c #FFA8E0",
|
||||
"0 c #02284E",
|
||||
"a c #FBA500",
|
||||
"b c #4C3100",
|
||||
"c c #D17DD1",
|
||||
"d c #614C61",
|
||||
"e c #514C51",
|
||||
"f c #AA66AA",
|
||||
"g c #FF79DF",
|
||||
"h c #FF90F6",
|
||||
"i c #001428",
|
||||
"j c #494949",
|
||||
"k c #1F265A",
|
||||
"l c #F0D300",
|
||||
"m c #483F00",
|
||||
"n c #FF68CE",
|
||||
"o c #A261A2",
|
||||
"p c #5D5D5D",
|
||||
"q c #969696",
|
||||
"r c #AE68AE",
|
||||
"s c #999999",
|
||||
"t c #00264C",
|
||||
"u c #6F7509",
|
||||
"v c #262626",
|
||||
"w c #1D1F00",
|
||||
"x c #868F00",
|
||||
"y c #292B00",
|
||||
"z c #FF86EC",
|
||||
"A c #575757",
|
||||
"B c #2B2525",
|
||||
"C c #646464",
|
||||
"D c #131313",
|
||||
"E c #727272",
|
||||
"F c #4F4F4F",
|
||||
"G c #2A2A2A",
|
||||
"H c #000000",
|
||||
"I c #FF72D8",
|
||||
"J c #F069C9",
|
||||
"K c #6D4C6D",
|
||||
"L c #7B7B7B",
|
||||
"M c #122539",
|
||||
"N c #20980E",
|
||||
"O c #236119",
|
||||
"P c #242424",
|
||||
"Q c #FF80E6",
|
||||
"R c #E073CD",
|
||||
"S c #383838",
|
||||
"T c #A0A0A0",
|
||||
"U c #A6A6A6",
|
||||
"V c #686868",
|
||||
"W c #CFCFCF",
|
||||
"X c #464646",
|
||||
"Y c #20D15C",
|
||||
"Z c #1AAF4D",
|
||||
"` c #083417",
|
||||
" . c #020F06",
|
||||
".. c #FF8FF5",
|
||||
"+. c #E086E0",
|
||||
"@. c #A89999",
|
||||
"#. c #A68F8F",
|
||||
"$. c #20262C",
|
||||
"%. c #666666",
|
||||
"&. c #4C4646",
|
||||
"*. c #B09999",
|
||||
"=. c #0EA7CB",
|
||||
"-. c #04323D",
|
||||
";. c #F0BB99",
|
||||
">. c #FF77DD",
|
||||
",. c #FF85EB",
|
||||
"'. c #D79999",
|
||||
"). c #F69999",
|
||||
"!. c #7F7F7F",
|
||||
"~. c #5F5F5F",
|
||||
"{. c #B59999",
|
||||
"]. c #FF9999",
|
||||
"^. c #3E2525",
|
||||
"/. c #1E80F7",
|
||||
"(. c #1354A2",
|
||||
"_. c #020912",
|
||||
":. c #FF95D5",
|
||||
"<. c #FF97FD",
|
||||
"[. c #F794F7",
|
||||
"}. c #885788",
|
||||
"|. c #7B6C6C",
|
||||
"1. c #161616",
|
||||
"2. c #232323",
|
||||
"3. c #0C0C0C",
|
||||
"4. c #070B0F",
|
||||
"5. c #0F2643",
|
||||
"6. c #5247F7",
|
||||
"7. c #39329C",
|
||||
"8. c #251E17",
|
||||
"9. c #BF9973",
|
||||
"0. c #4B3C2D",
|
||||
"a. c #616161",
|
||||
"b. c #737373",
|
||||
"c. c #54575A",
|
||||
"d. c #001D3A",
|
||||
"e. c #5536D9",
|
||||
"f. c #222126",
|
||||
"g. c #241856",
|
||||
"h. c #191919",
|
||||
"i. c #001932",
|
||||
"j. c #000A14",
|
||||
"k. c #414141",
|
||||
"l. c #333333",
|
||||
"m. c #000E1D",
|
||||
"n. c #002040",
|
||||
"o. c #263498",
|
||||
"p. c #08090C",
|
||||
"q. c #23308F",
|
||||
"r. c #002B56",
|
||||
". . . . . . + @ @ @ @ @ @ @ @ @ @ @ @ # $ % % % % ",
|
||||
"& & & & & * = - ; > > > > > > > > > , ' ) $ % % % ",
|
||||
"! ! ! ! ! ~ { ] ^ / / / ( / _ : / / < - [ } % % % ",
|
||||
"| | | | | 1 2 / 3 4 / / / / 5 6 ^ 7 8 9 [ } 0 $ % ",
|
||||
"a a a a a b 2 / / / / / / c d e f g h 9 [ i j k $ ",
|
||||
"l l l l l m 2 / / / / n h o p q p r ^ 9 [ p s j t ",
|
||||
"u v v w x y 2 / / z / / / o p s s A B B C s s j t ",
|
||||
"D E s F G H 2 / / I / / J K L s s s s s s s s E M ",
|
||||
"N O v v j P 2 g Q / / / R S s T U V s s s W X s v ",
|
||||
"Y Y Y Z ` .2 / / / ..h +.S @.#.$.V s L %.) &.*.B ",
|
||||
"=.=.=.=.=.-.;.9 >.8 ,.z +.S '.).= !.q C s ~.{.].^.",
|
||||
"/./././.(._.{ , :.<./ / [.}.|.*.C 1.2.3.$.4.s |.5.",
|
||||
"6.6.6.7.v v 8.9.9.9.9.9.9.9.0.a.E E b.b.b.b.c.d.% ",
|
||||
"e.e.e.f.s C g.h.F 4.i.i.i.i.j.k.l.m._.F v i n.% % ",
|
||||
"o.o.o.p.v k q.k v _.% % % % r.$.h.d.0 v D } % % % "};
|
@ -1,60 +0,0 @@
|
||||
;;; nyan-prompt.el --- Nyan Cat on the eshell prompt.
|
||||
|
||||
;; Author: Javier "PuercoPop" Olaechea <pirata@gmail.com>
|
||||
;; URL: http://github.com/PuercoPop/nyan-prompt
|
||||
;; Version: 0.2.0
|
||||
;; Keywords: nyan, cat, lulz, eshell, rainbow
|
||||
;; Dependencies ((rx 0))
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; Usage: (add-hook 'eshell-load-hook 'nyan-prompt-enable)
|
||||
|
||||
;; Inspired by from Jacek "TeMPOraL" Zlydach nyan-mode, to make Porter happy.
|
||||
|
||||
|
||||
;; Copying is an act of love, please copy. ♡
|
||||
;; The xpm taken awesome nyan-mode
|
||||
|
||||
;;; Code:
|
||||
|
||||
(require 'rx)
|
||||
|
||||
(defconst nyan-prompt-dir (file-name-directory
|
||||
(or load-file-name buffer-file-name)))
|
||||
|
||||
(defconst nyan-prompt-nyan-cat-image
|
||||
(create-image (concat nyan-prompt-dir "img/nyan.xpm")
|
||||
'xpm nil :ascent 'center))
|
||||
|
||||
(defconst nyan-prompt-nyan-cat-emoticon "~=[,,_,,]:3"
|
||||
"ASCII art representing the nyan-cat.")
|
||||
|
||||
(defconst nyan-prompt-nyan-cat-string
|
||||
(propertize nyan-prompt-nyan-cat-emoticon
|
||||
'display nyan-prompt-nyan-cat-image))
|
||||
|
||||
(defvar nyan-prompt-original-prompt nil
|
||||
"The eshell prompt function before enabling nyan-prompt")
|
||||
|
||||
(defvar nyan-prompt-enabled nil
|
||||
"t if nyan-prompt is enabled")
|
||||
|
||||
(defun eshell-nyan-prompt ()
|
||||
(concat nyan-prompt-nyan-cat-string " " (funcall nyan-prompt-original-prompt)))
|
||||
|
||||
(defun nyan-prompt-disable ()
|
||||
(when nyan-prompt-enabled
|
||||
(setq nyan-prompt-enabled nil
|
||||
eshell-prompt-function nyan-prompt-original-prompt)))
|
||||
|
||||
;;;###autoload
|
||||
(defun nyan-prompt-enable ()
|
||||
(when (not nyan-prompt-enabled)
|
||||
(setq nyan-prompt-enabled t
|
||||
nyan-prompt-original-prompt eshell-prompt-function
|
||||
eshell-prompt-function 'eshell-nyan-prompt)))
|
||||
|
||||
|
||||
(provide 'nyan-prompt)
|
||||
;;; nyan-prompt.el ends here
|
Loading…
Reference in New Issue
Block a user