.emacs-easyrestore 74 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532
  1. ;; so this is Digit's main emacs config file. if you're not Digit, this will be of no interest to you. move along.
  2. ;; for supercollider audio tracker
  3. ;;(require 'sclang)
  4. ;; but not doing that on this stable (old) system, because it wants :
  5. ;; 250 upgraded, 60 newly installed, 401 to remove and 1597 not upgraded.
  6. ;;Need to get 395 MB of archives.
  7. ;;After this operation, 2,853 MB disk space will be freed.
  8. ;;Do you want to continue? [Y/n] ^C⏎
  9. ;; no, i dont. n_n
  10. ;;;;;;; before proceeding with the emacs config...
  11. ;;;;;;; some notes on health (kept here for now so i dont lose them. lol)
  12. ;;;;;;; cannabis saves my life. trying to figure out what in it does that.
  13. ;;;;;;; best i've worked out so far:
  14. ;;;;;;;
  15. ;;;;;;; CBD:THC at about 15-30:1, and over 1.2g CBD daily.
  16. ;;;;;;; the THC there, meaning d9-thc-c5, but i know d8-THC-c5's greatly needed too, foremost for asthma.
  17. ;;;;;;; the CBD's for widespread help with my >25 ailments, notably for candida, which is a precursor for most.
  18. ;;;;;;; also for candida, thinking i really need to get the following terpenes (preliminary/guesswork):
  19. ;;;;;;;
  20. ;;;;;;; ocimene, beta-ocimene, terpinolene, alpha-bisbolol, caryophyllene, thymol, eugenol, alpha-pinene, beta-pinene, fenchol, ... and i'll find more later. get a load of these in me, n i might manage to kill of candida, and restore myself to health, ridding myself of anxiety, anal bleeding, depression, brainfog and more.
  21. ;;;;;;;
  22. ;; orly? https://emacs.stackexchange.com/questions/822/how-to-setup-default-windows-at-startup
  23. ;; n this will save my windows n buffers layout ?
  24. ;;(desktop-save-mode 1)
  25. ;; Added by Package.el. This must come before configurations of
  26. ;; installed packages. Don't delete this line. If you don't want it,
  27. ;; just comment it out by adding a semicolon to the start of the line.
  28. ;; You may delete these explanatory comments.
  29. (package-initialize)
  30. ;;(load-file "~/.emacs.d/t-mouse.el")
  31. ;;specialfiles i want open all the time from the start.
  32. ;;(find-file "/path/to/your/file")
  33. ;;;;as advised @ http://stackoverflow.com/questions/999708/how-to-open-files-automatically-when-starting-emacs
  34. ;; what, and why, did i add this line? .... O_O
  35. ;;((((((((((((((((((((((((((((((((((((((((((((((()))))))))))))))))))))))))))))))))))))))))))))))
  36. ;;cos it's pretty when uncommented, no?
  37. ;; ;;
  38. ;;;;;;org-journal;;;;;;;
  39. ;; ;;
  40. ;; https://github.com/bastibe/org-journal
  41. ;; adding on whim. 20190314
  42. ;;(add-to-list 'load-path "/home/digit/gittings/org-journal/")
  43. ;;(require 'org-journal)
  44. ;; ;;
  45. ;; ;;
  46. ;; ;;
  47. ;; added this following a video tute
  48. (defun my/insert-line-before (times)
  49. "Inserts newline(s) preceding cursor line"
  50. (interactive "p") ; Called from -Mx
  51. (save-excursion ; store position
  52. (move-beginning-of-line 1)
  53. (newline times ))) ; insert line before current
  54. ;; same tute still, this is how to add keybinds, yay
  55. (global-set-key (kbd "C-S-o")
  56. 'my/insert-line-before)
  57. ;;;;;;;;;;;;;;;;;;;;;;;;;;;
  58. ;;;;;;;;;;;;;;;;;;;;;;;;;;;
  59. ;;;;;;;;;;;matrix;;;;;;;;;;
  60. (add-to-list 'load-path "/home/digit/.emacs.d/matrix-client")
  61. ;;why does this complain saying, "no such file or directory, request"?
  62. ;;(require 'matrix-client)
  63. ;;;;;;;;;;;;;;;;;;;;;;;;;;;
  64. ;;;;;;;;;;;;;;;;;;;;;;;;;;;
  65. ;;;;;;;;;;;;;;;;;;;;;;;;;;;
  66. ;;;;;;;;tryin this...
  67. ;;(setq erc-scrolltobottom-enable) ;; do i need this? .... no... it errors.
  68. (setq-default erc-scrolltobottom-enable) ;; will either line work at all?
  69. ;;;;;;;;;;;;;;;;;;;;
  70. ;; Erc Button URL ;; as taken from https://www.emacswiki.org/emacs/ErcConfiguration (so the I/i there isnt me).
  71. ;;;;;;;;;;;;;;;;;;;;
  72. ;; Sometimes people often type URL’s like:
  73. ;;
  74. ;; <nick> Try foo.org!
  75. ;;
  76. ;;I want my emacs to be able to buttonize that url (even though it doesn’t contain a www or http, and launch my galeon if i middle-click. I also want emacs to be very strict about the last letter and realize that ! is not part of the url. Finally, I don’t care too much about false positives, but false negatives are a pain. So, here’s the tweak I use:
  77. (setq erc-button-url-regexp "\\([-a-zA-Z0-9_=!?#$@~`%&*+\\/:;,]+\\.\\)+[-a-zA-Z0-9_=!?#$@~`%&*+\\/:;,]*[-a-zA-Z0-9\\/]")
  78. ;;;;;;;;;;;;;;;;;;
  79. ;; nick colours ;;
  80. ;;;;;;;;;;;;;;;;;;
  81. ;; as seen @ https://www.emacswiki.org/emacs/ErcNickColors
  82. ;; option 1
  83. ;; Oiriginal Pool of colors to use when coloring IRC nicks.
  84. ;;(setq erc-colors-list '("green" "blue" "red"
  85. ;; "dark gray" "dark orange"
  86. ;; "dark magenta" "maroon"
  87. ;; "indian red" "black" "forest green"
  88. ;; "midnight blue" "dark violet"))
  89. ;; this next bit says my pref, but, it's not really... i need make better. i need make rainbow nicks, where each character's a colour, ideally even gradients from first to last character.
  90. ;;my pref colours.
  91. (setq erc-colors-list '(;;"#e3b" "#d4c" "#c5d" ;; fakin purps1
  92. "#dcb" "#cba" "#ba9" ;; mild orange light
  93. "#a98" "#987" "#876" ;; mild orange mid
  94. "#ecb" "#dba" "#ca9" ;; mild rust light
  95. "#b98" "#a87" "#976" ;; mild rust mid
  96. ;;; "#787" "#676" "#565" ;; mild greens mid
  97. ;;; "#a9a" "#bab" "#cbc" ;; mild greens light
  98. ;; "#989" "#878" "#767" ;; mild purp mid
  99. ;; "#656" "#545" "#434" ;; mild purp dark
  100. ;; "#667" "#778" "#99a" ;; mild blue mid
  101. ;; "#abb" "#baa" "#cdd" ;; mild blue light
  102. "#dd9" "#cc8" "#bb7" ;; mild yellow light
  103. "#bb6" "#aa5" "#994" ;; mild yellow dark
  104. ;; "#865" "#754" "#643" ;; mild rust dark
  105. ;; "#673" "#784" "#895" ;; mild lime dark
  106. "#9a6" "#ab7" "#bc8" ;; mild lime mid
  107. ;;; "#cd9" "#dea" "#efb" ;; mild lime bright
  108. ;; "#678" "#567" "#456" ;; mild stone dark
  109. ;; "#789" "#89a" "#9ab" ;; mild stone mid
  110. ;; "#d55" "#d37" "#d73" ;; extension1
  111. ;;;; "#5d5" "#3d7" "#7d3" ;; extension2
  112. ;; "#55d" "#37d" "#73d" ;; extension3
  113. ;; "#c66" "#c48" "#c84" ;; extension4
  114. ;;;; "#6c6" "#4c8" "#8c4" ;; extension5
  115. ;; "#66c" "#48c" "#84c" ;; extension6
  116. ;; "#b77" "#b59" "#b95" ;; extension7
  117. ;;;; "#7b7" "#5b9" "#9b5" ;; extension8
  118. ;; "#77b" "#59b" "#95b" ;; extension9
  119. ;; "#a88" "#a6a" "#aa6" ;; extension10
  120. ;; "#8a8" "#6aa" "#a5a" ;; extension10
  121. ;; "#88a" "#7aa" "#a4a" ;; extension10
  122. "#878" "#978" "#a78" "#b78" ;; fakin purps2
  123. "#989" "#98a" "#a89" "#b89" ;; fakin purps3
  124. "#a9a" "#b9a" "#c9a" ;; fakin purps4
  125. "#aaa" "#baa" "#bab" "#bac" ;; fakin purps5
  126. "#cab" "#dab" "#eab" ;; fakin purps6
  127. "#cbc" "#dbc" "#ebc" "#cbd" ;; fakin purps7
  128. "#edc" "#dcb" "#cba" ;; mild rust light remix1
  129. "#edb" "#dca" "#cb9" ;; mild rust light remix2
  130. "#eda" "#dc9" "#cb8" ;; mild rust light remix3
  131. "#dbb" "#caa" "#b99" ;; mild rust light remix4
  132. "#777" "#888" "#999")) ;;greys
  133. ;;;; Digit's Nice Language-inator
  134. ;;;;(defun erc-nice-language
  135. ;;;; "Makes naughty words acceptable for kids"
  136. ;;;;;;;;NOPE gonna have to ask for help in getting more than one to work.
  137. (add-hook 'erc-send-pre-hook
  138. (lambda (s1)
  139. (setq str
  140. (replace-regexp-in-string
  141. "facebook"
  142. "fascbook"
  143. s1))))
  144. ;; ^ ok, so how do i do multiple ones... just repeat that add-hook expression?
  145. ;; wanna s|https://www.youtube.com/watch?v=|https://www.invidio.us/watch?v=|
  146. ;;(add-hook 'erc-send-pre-hook
  147. ;; (lambda (s1)
  148. ;; (setq str
  149. ;; (replace-regexp-in-string
  150. ;; "shit"
  151. ;; "scat"
  152. ;; s1))))
  153. ;;(add-hook 'erc-send-pre-hook
  154. ;; (lambda (s1)
  155. ;; (setq str
  156. ;; (replace-regexp-in-string
  157. ;; "cunt"
  158. ;; "foofoo"
  159. ;; s1))))
  160. ;;(add-hook 'erc-send-pre-hook
  161. ;; (lambda (s1)
  162. ;; (setq str
  163. ;; (replace-regexp-in-string
  164. ;; "bastard"
  165. ;; "fathersans"
  166. ;; s1))))
  167. ;;)
  168. ;;;; special colors for some people
  169. (setq erc-nick-color-alist '(("lo9rd" . "white")
  170. ("Tago" . "red")
  171. ))
  172. (defun erc-get-color-for-nick (nick)
  173. "Gets a color for NICK. If NICK is in erc-nick-color-alist, use that color, else hash the nick and use a random color from the pool"
  174. (or (cdr (assoc nick erc-nick-color-alist))
  175. (nth
  176. (mod (string-to-number
  177. (substring (md5 (downcase nick)) 0 6) 16)
  178. (length erc-colors-list))
  179. erc-colors-list)))
  180. (defun erc-put-color-on-nick ()
  181. "Modifies the color of nicks according to erc-get-color-for-nick"
  182. (save-excursion
  183. (goto-char (point-min))
  184. (if (looking-at "<\\([^>]*\\)>")
  185. (let ((nick (match-string 1)))
  186. (put-text-property (match-beginning 1) (match-end 1) 'face
  187. (cons 'foreground-color
  188. (erc-get-color-for-nick nick)))))))
  189. (add-hook 'erc-insert-modify-hook 'erc-put-color-on-nick)
  190. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  191. ;;here's my attempt to restore erc chat logging configury.;;
  192. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  193. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  194. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  195. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  196. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  197. ;; all this came from:
  198. ;; https://www.emacswiki.org/emacs/ErcLogging
  199. ;;where the logs get saved
  200. ;;(setq erc-log-channels-directory "~/.erc/logs/")
  201. ;; for some reason, i cant get that location to work. !! ??? !!! wtf
  202. (setq erc-log-channels-directory "~/log/")
  203. ;; likewise didnt work
  204. ;;(setq erc-log-channels-directory "~/smeg/")
  205. ;;Calling the function ‘erc-save-buffer-in-logs’ in an ERC-mode buffer will save a log.
  206. ;;saves buffers on quit buffer or part
  207. (setq erc-save-buffer-on-part t)
  208. ;; omigosh, could this restore my logging?
  209. (setq erc-log-write-after-insert t)
  210. (setq erc-log-write-after-send t)
  211. ;;If you want timestamps in the logs but not shown while you chat, set this, too:
  212. ;; (setq erc-hide-timestamps t)
  213. ;; unsure how this would react with logged-unshown timestamps thing above, but,
  214. ;; this doozey will let you toggle timestamps showing, with a keybind!
  215. ;; to do (remember to come back n add mention here of whether when they're toggled off they still show in logs)
  216. ;;(add-hook 'erc-mode
  217. ;; (lambda () (define-key erc-mode-map [kbd "C-t"] #'erc-toggle-timestamps)))
  218. ;; fuckit, that wasnt getting transpose-chars out of the way (no matter my mess of edits n websearches).
  219. ;; lets try adding an unset too.
  220. ;;;; THIS ONE WORKS... return to it upon failure of refinements, or for reference during refinements.
  221. ;;(add-hook 'erc-mode
  222. ;; (global-unset-key (kbd "C-t"))
  223. ;; ;; (lambda () (set-local-key (kbd "C-t") #'erc-toggle-timestamps)))
  224. ;; '(set-local-key (kbd "C-t") 'erc-toggle-timestamps))
  225. ;;(global-set-key (kbd "C-t") 'erc-toggle-timestamps)
  226. ;;
  227. ;;;; THIS ONE... lets see...
  228. ;; yep, well, it's shorter, and cleaner looking. but indeed, the one above is at least some ways closer to doing it properly.
  229. ;; i never used transpose anyway. ;D this is better.
  230. (global-unset-key (kbd "C-t"))
  231. (global-set-key (kbd "C-t") 'erc-toggle-timestamps)
  232. ;; here begins actual work on toggling show/hide JOIN/PART/QUIT messages. !!! yes. :)
  233. ;; so, we'll have something like above
  234. ;; not working code yet, just a pseudo-code copy-pasta parody
  235. ;;(global-unset-key (kbd "C-j"))
  236. ;;(global-set-key (kbd "C-j") 'erc-toggle-joinpartquit)
  237. ;; but of course, we need to make erc-toggle-joinpartquit
  238. ;; and that's what we're here for.
  239. ;;
  240. ;; and again, this is not yet working tested code, just copy-pasta crudest editing
  241. ;; of, this time, erc-stamp.el's erc-toggle-timestams
  242. ;;
  243. ;;(defun erc-toggle-joinpartquit ()
  244. ;; "Hide or show JOIN, PART, QUIT messages in ERC buffers.
  245. ;;
  246. ;;Note that JOIN/PART/QUIT messages can only be shown for a message using this
  247. ;;function if `erc-joinpartquit-format' was set and joinpartquit was
  248. ;;enabled when the message was inserted."
  249. ;; (interactive)
  250. ;; (if erc-hide-joinpartquit
  251. ;; (setq erc-hide-joinpartquit nil)
  252. ;; (setq erc-hide-joinpartquit t))
  253. ;; (mapc (lambda (buffer)
  254. ;; (with-current-buffer buffer
  255. ;; (erc-munge-invisibility-spec)))
  256. ;; (erc-buffer-list)))
  257. ;;This variable actually defaults to on. If you don’t like query / channel windows to be filled with the previous correspondance when you next open them, eval the following code:
  258. ;; there may be issues with this.
  259. (setq erc-log-insert-log-on-open nil)
  260. ;; erc-log-all-but-server-buffers (defined in erc-log.el) has side effects
  261. ;; ;;; Original version in the Emacs sources:
  262. ;; (defun erc-log-all-but-server-buffers (buffer)
  263. ;; "Returns t if logging should be enabled in BUFFER.
  264. ;; Returns nil if `erc-server-buffer-p' returns t."
  265. ;; (save-excursion
  266. ;; (save-window-excursion
  267. ;; (set-buffer buffer)
  268. ;; (not (erc-server-buffer-p)))))
  269. ;; My (who?) version:
  270. (defun erc-log-all-but-server-buffers (buffer)
  271. (with-current-buffer buffer
  272. (not (erc-server-buffer-p))))
  273. ;;
  274. ;; ;;; Anyway, a more direct modification also works fine:
  275. ;; (defun erc-log-all-but-server-buffers (buffer)
  276. ;; (set-buffer buffer)
  277. ;; (not (erc-server-buffer-p)))
  278. ;; more Auto-saving log files on emacs exit
  279. ;; Normally when exiting emacs with log files on, you will be prompted to save each buffer in turn. This can be quite frustrating if you need to exit in a hurry (“You ever need to leave emacs?” some might ask ;-)). Here’s a lisp snippit which will save all erc buffers to logs when exiting.
  280. (defadvice save-buffers-kill-emacs (before save-logs (arg) activate)
  281. (save-some-buffers t (lambda () (when (eq major-mode 'erc-mode) t))))
  282. ;; it was found replacing the when line above with this avoids trying to save server buffers etc with no associated file:
  283. ;;(when (and (eq major-mode 'erc-mode)
  284. ;; (not (null buffer-file-name))))
  285. ;;Auto-saving log files on channel activity
  286. ;;Only tested with ERC 5.3:
  287. (setq erc-save-buffer-on-part nil ;;was nil try t?
  288. erc-save-queries-on-quit nil ;; was nil try t?
  289. erc-log-write-after-send t
  290. erc-log-write-after-insert t)
  291. ;;Check your version of ERC (C-h v erc-version-string RET) before reading on, as this (above) is probably the solution you want.
  292. ;; (These settings clearly post-date most of the discussion below)
  293. ;;see https://www.emacswiki.org/emacs/ErcLogging from delYsid's advice
  294. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  295. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  296. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  297. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  298. ;;that's the end of the erc logging restoration configury.;;
  299. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  300. ;; adding for Sauron's sake (preventing pm from changing sauron)
  301. ;; found here https://www.reddit.com/r/emacs/comments/1xfeuw/how_do_i_pin_windows_in_place/
  302. ;; if you find this behaviour inadequate, try CodyChan's solution with sticky mode.
  303. ;; Locked mode
  304. (global-set-key (kbd "C-c C-l") 'locked-buffer-mode)
  305. (define-minor-mode locked-buffer-mode
  306. "Make the current window always display this buffer."
  307. nil " locked" nil
  308. (set-window-dedicated-p (selected-window) locked-buffer-mode))
  309. ;; yeah, that didnt work... or so it seemed when that guy spammed me, filling up sauron. :/
  310. ;;methinks rainbow delimiters shud work with these 2-- 3(?) lines now.
  311. ;; now that they're in the right order! lol
  312. ;;(load-file "~/gittings/rainbow-delimiters/rainbow-delimiters.elc")
  313. ;;(add-hook 'prog-mode-hook 'rainbow-delimiters-mode)
  314. ;;(require 'rainbow-delimiters)
  315. ;; mouse cursor colour fix
  316. (set-mouse-color "dark orange")
  317. ;;windmove http://emacswiki.org/emacs/WindMove
  318. (when (fboundp 'windmove-default-keybindings)
  319. (windmove-default-keybindings))
  320. ;;;orrr leave windmove-default-keybindings off (uncomment the 2 lines above), n it should allow shift selection of chars.
  321. ;; remains to be seen.
  322. ;;(global-set-key (kbd "C-c <left>") 'windmove-left)
  323. ;;(global-set-key (kbd "C-c <right>") 'windmove-right)
  324. ;;(global-set-key (kbd "C-c <up>") 'windmove-up)
  325. ;;(global-set-key (kbd "C-c <down>") 'windmove-down)
  326. ;;or
  327. ;;(global-set-key (kbd "C-c h") 'windmove-left)
  328. ;;(global-set-key (kbd "C-c l") 'windmove-right)
  329. ;;(global-set-key (kbd "C-c j") 'windmove-up)
  330. ;;(global-set-key (kbd "C-c k") 'windmove-down)
  331. ;;or shift arrow... which seems to work. o_O
  332. ;; or... so they say
  333. ;;(global-set-key [M-left] 'windmove-left) ; move to left window
  334. ;;(global-set-key [M-right] 'windmove-right) ; move to right window
  335. ;;(global-set-key [M-up] 'windmove-up) ; move to upper window
  336. ;;(global-set-key [M-down] 'windmove-down) ; move to lower window
  337. ;;totally gonna fix those for desired behaviour
  338. ;;tho i suppose i want to switch buffers, not move window focus...
  339. ;;arg. how do i get those keys working (in terminal(?)), my precious back n forward keys... perfect for buffer cycling... if only i could find the character
  340. ;;(global-set-key (kbd "<XF86Forward>") 'next-buffer) ;; thisema time
  341. ;;(global-set-key [xf86forward] 'next-buffer)
  342. ;;(global-set-key [Back] 'previous-buffer)
  343. ;; gah^ buffer switching like that no work in terminal emacs
  344. ;;and for those of us on keyboards without fancy keys like xf86forward and back on our keyboards:
  345. ;;(global-set-key (kbd "M-<right>") 'next-buffer)
  346. ;;(global-set-key (kbd "M-<left>") 'previous-buffer)
  347. ;;or
  348. (global-set-key (kbd "M-]") 'next-buffer)
  349. (global-set-key (kbd "M-[") 'previous-buffer)
  350. (global-set-key (kbd "C-<mouse-8>") 'next-buffer)
  351. (global-set-key (kbd "C-<mouse-9>") 'previous-buffer)
  352. ;; now how to get a bind to cycle only erc
  353. ;; and a bind to cycle any but erc
  354. ;;;;;;;;;;;;;;;;;;;;;;;;
  355. ;;;; el-feed stuff
  356. ;;;;;;;;;;;;;;;;;;;;;;;;
  357. ;; add the Elfeed package directory to your load-path
  358. (setq load-path (cons "~/gittings/elfeed/" load-path))
  359. ;; It is recommended that you make a global binding for elfeed.
  360. (global-set-key (kbd "C-x w") 'elfeed)
  361. ;;Running the interactive function elfeed will pop up the *elfeed-search* buffer, which will display feed items.
  362. ;;
  363. ;; g: refresh view of the feed listing
  364. ;; G: fetch feed updates from the servers
  365. ;; s: update the search filter (see tags)
  366. ;;
  367. ;;This buffer will be empty until you add your feeds to the elfeed-feeds list and initiate an update with M-x elfeed-update (or G in the Elfeed buffer). This will populate the Elfeed database with entries.
  368. ;; Somewhere in your .emacs file
  369. (setq elfeed-feeds
  370. '(;;"http://nullprogram.com/feed/"
  371. ;; "http://planet.emacsen.org/atom.xml"
  372. ;; "http://ks392457.kimsufi.com/dnb/rss.xml"
  373. ;; "http://ks392457.kimsufi.com/dnb/rss.atom"
  374. ;; "http://ks392457.kimsufi.com/dhb/rss.xml"
  375. ;; "http://ks392457.kimsufi.com/dhb/rss.atom"
  376. ;; "http://ks392457.kimsufi.com/dob/rss.xml"
  377. ;; "http://ks392457.kimsufi.com/dob/rss.atom"
  378. ;; "https://theintercept.com/podcasts/"
  379. ;; "https://www.rt.com/rss/"
  380. "https://stallman.org/rss/rss.xml"))
  381. ;;;;;;;;;;;;;;;;;;;;;;;;
  382. ;;;; diaspora-el stuff
  383. ;;;;;;;;;;;;;;;;;;;;;;;;
  384. ;; FIXME
  385. ;; cannot find some of its deps when it tries to launch
  386. ;;(setq load-path (cons "~/gittings/diaspora.el/" load-path))
  387. ;;(require 'diaspora)
  388. ;;;;;;;;;;;;;;;;;;;;;;;;
  389. ;;;; calendar stuff
  390. ;;;;;;;;;;;;;;;;;;;;;;;;
  391. ;; i like to know what time it is back home
  392. (setq calendar-latitude 58.98)
  393. (setq calendar-longitude 2.96)
  394. (setq calendar-location-name "Orkney")
  395. ;; (setq calendar-time-zone -360)
  396. ;; (setq calendar-standard-time-zone-name "CST")
  397. ;; (setq calendar-daylight-time-zone-name "CDT")
  398. ;; window navigation (did this when insomniac awaked ~ sleepy, check it)
  399. (define-key global-map (read-kbd-macro "M-<up>") 'windmove-up)
  400. (define-key global-map (read-kbd-macro "M-<down>") 'windmove-down)
  401. (define-key global-map (read-kbd-macro "M-<left>") 'windmove-left)
  402. (define-key global-map (read-kbd-macro "M-<right>") 'windmove-right)
  403. ;; and make selections work now too. move shift-direction back to selecting text, not switching window...
  404. ;;;;;;;;;;;;;;;;;;;;;;;;;;
  405. ;;;; multimedia stuff
  406. ;;;;;;;;;;;;;;;;;;;;;;;;;;
  407. ;; FIXME nope, this buggered up launch too
  408. ;;(add-to-list 'load-path "/home/digit/gittings/emms-player-mpv")
  409. ;;(require 'emms-player-mpv)
  410. ;;(add-to-list 'emms-player-list 'emms-player-mpv)
  411. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  412. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; resize fonts... ;;
  413. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  414. ;; ok, lets define what i want first... and then get wrestling once i know the goal.
  415. ;; C-- and C-=, incrementaly font size in the buffer.
  416. ;; C-M-- and C-M-=, incrementaly font size in all buffers and special places (modebar, etc).
  417. ;;easy resize fonts
  418. (global-set-key (kbd "C-M-=") 'text-scale-increase)
  419. (global-set-key (kbd "C-M--") 'text-scale-decrease)
  420. (global-set-key (kbd "C-<mouse-4>") 'text-scale-increase)
  421. (global-set-key (kbd "C-<mouse-5>") 'text-scale-decrease)
  422. ;; resize fonts, as seen:
  423. ;;https://www.emacswiki.org/emacs/CycleFontSizes
  424. ;; Firefox-like zooming of fonts.
  425. (setq default-font-zoom-index 2)
  426. (setq font-zoom-index default-font-zoom-index)
  427. ;;font face resize scale shenanigans
  428. ;
  429. ;;(setq font-zoom-list
  430. ;; (list "-*-fixed-*-*-*-*-6-*-*-*-*-*-*-*"
  431. ;; "-*-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
  432. ;; "-*-fixed-*-*-*-*-13-*-*-*-*-*-*-*"
  433. ;; "-*-fixed-*-*-*-*-17-*-*-*-*-*-*-*"
  434. ;; "-*-fixed-*-*-*-*-18-*-*-*-*-*-*-*"
  435. ;; "-*-fixed-*-*-*-*-24-*-*-*-*-*-*-*"
  436. ;; "-*-fixed-*-*-*-*-36-*-*-*-*-*-*-*"
  437. ;; "-*-fixed-*-*-*-*-48-*-*-*-*-*-*-*"))
  438. ;;(setq font-zoom-list
  439. ;; (list "-*-bf-*-*-*-*-3-*-*-*-*-*-*-*"
  440. ;; "-*-qnub-*-*-*-*-4-*-*-*-*-*-*-*"
  441. ;; "-*-fixed-*-*-*-*-5-*-*-*-*-*-*-*"
  442. ;; "-*-fixed-*-*-*-*-6-*-*-*-*-*-*-*"
  443. ;; "-*-tydals-*-*-*-*-7-*-*-*-*-*-*-*"
  444. ;; "-*-fixed-*-*-*-*-8-*-*-*-*-*-*-*"
  445. ;; "-*-fixed-*-*-*-*-9-*-*-*-*-*-*-*"
  446. ;; "-*-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
  447. ;; "-*-fixed-*-*-*-*-11-*-*-*-*-*-*-*"
  448. ;; "-*-fixed-*-*-*-*-12-*-*-*-*-*-*-*"
  449. ;; "-*-fixed-*-*-*-*-16-*-*-*-*-*-*-*"
  450. ;; "-*-fixed-*-*-*-*-22-*-*-*-*-*-*-*"
  451. ;; "-*-fixed-*-*-*-*-28-*-*-*-*-*-*-*"
  452. ;; "-*-fixed-*-*-*-*-32-*-*-*-*-*-*-*"))
  453. ;
  454. ;;(setq font-zoom-list
  455. ;; (list "-*-bf-*-*-*-*-4-*-*-*-*-*-*-*" ;; otb, but keeping anyways!
  456. ;;;; "-*-qnub-*-*-*-*-5-*-*-*-*-*-*-*" ;;doesnt get picked up
  457. ;;;; "-*-mnky-*-*-*-*-6-*-*-*-*-*-*-*" ;;blocks
  458. ;; "-*-djfl-*-*-*-*-7-*-*-*-*-*-*-*" ;; nice, but uncertain. works well at 72
  459. ;;;; "-*-kob-*-*-*-*-8-*-*-*-*-*-*-*" ;; just silly/scribbly
  460. ;; "-*-rmnd-*-*-*-*-9-*-*-*-*-*-*-*" ;; otb gets picked up over ttf
  461. ;;;; "-*-tidyr-*-*-*-*-10-*-*-*-*-*-*-*" ;; uhh
  462. ;;;; "-*-tidyra-*-*-*-*-11-*-*-*-*-*-*-*" ;; ""
  463. ;;;; "-*-tidyrb-*-*-*-*-12-*-*-*-*-*-*-*" ;; ""
  464. ;; "-*-tydls-*-*-*-*-8-*-*-*-*-*-*-*" ;; tydls "tidals"/"tiddles" an old fave... but otb.
  465. ;; "-*-wastage-*-*-*-*-16-*-*-*-*-*-*-*"
  466. ;; "-*-wastest-*-*-*-*-22-*-*-*-*-*-*-*"
  467. ;; "-*-bf-*-*-*-*-28-*-*-*-*-*-*-*"
  468. ;; ;; more fonts:
  469. ;; ;; mimia ;; incomplete.
  470. ;; ;; nzt ;; noice!
  471. ;; ;; yti. nice, narrow, but needs bigger size number than you'd think. 88 n its crisp.
  472. ;; ;; ytia, as above
  473. ;; ;; yz, crisp at 49
  474. ;; ;; zem, crisp at 87
  475. ;; ;; clso, looks crisp at ... oh, any. seems otb pickup
  476. ;; "-*-clso-*-*-*-*-32-*-*-*-*-*-*-*"))
  477. ;;(setq font-zoom-list
  478. ;; (list "((t (:height 42 :family merg)))"
  479. ;; "((t (:height 49 :family yz)))"
  480. ;; "((t (:height 87 :family "zem")))"
  481. ;; "((t (:height 88 :family "yti")))"
  482. ;; "((t (:height 145 : family 'merg')))"
  483. ;; ))
  484. ;; tried setting it like this again, with n without quotes. why that way no work anymore?
  485. ;;(setq font-zoom-list
  486. ;; (list ((t (:height 49 :family "yz")))
  487. ;; ((t (:height 57-63 :family "jjfhlo"))) ;; jffhlo better than jffh
  488. ;; "((t (:height 145 : family "merg")))"
  489. ;; "((t (:height 290 : family "merg")))"
  490. ;; "((t (:height 580 : family "merg")))"
  491. ;; "((t (:height 570 : family "merg")))"
  492. ;; "((t (:height 190 : family "merg")))"
  493. ;; "((t (:height 157 : family "merg")))"
  494. ;; ))
  495. ;;bring back yz somewhere in the mix. yz is nice. no?
  496. (setq font-zoom-list
  497. (list "-*-merg-*-*-*-*-16-*-*-*-*-*-*-*" ;;CONFIRMEDFONT
  498. ;; how do i get this, the default, slipped in here? (:inherit nil :stipple nil :background "#221321" :foreground "#ffbb55" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 146 :width normal :foundry "PfEd" :family "merg")... i will try...
  499. "-*-merg-*-*-*-*-20-*-*-*-*-*-*-*" ;;testing default-font default-face back in place... ... y'know, i think that worked. 20=146 :) first time guess. :)
  500. "-*-merg-*-*-*-*-24-*-*-*-*-*-*-*" ;;testing~fence
  501. "-*-merg-*-*-*-*-32-*-*-*-*-*-*-*" ;;CONFIRMEDFONT
  502. ;; "-*-yz-*-*-*-*-5-*-*-*-*-*-*-*" ;;prior list faves, but broken
  503. "-*-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
  504. "-*-mnky-*-*-*-*-6-*-*-*-*-*-*-*" ;;blocks
  505. ;; "-*-djfl-*-*-*-*-7-*-*-*-*-*-*-*" ;; nice, but uncertain. works well at 72
  506. ;; "-*-rmnd-*-*-*-*-9-*-*-*-*-*-*-*" ;; otb gets picked up over ttf
  507. "-*-tydls-*-*-*-*-8-*-*-*-*-*-*-*" ;; tydls "tidals"/"tiddles" an old fave... but otb.
  508. "-*-bf-*-*-*-*-4-*-*-*-*-*-*-*" ;; the smallest
  509. ;; "-*-'qnub-test'-*-*-*-*-4-*-*-*-*-*-*-*" ;; quantum sized
  510. "-*-tydls-*-*-*-*-6-*-*-*-*-*-*-*" ;;
  511. "-*-nztt-*-*-*-*-6-*-*-*-*-*-*-*" ;;"((t (:height 42 :family "nzt")))"
  512. "-*-brf-*-*-*-*-5-*-*-*-*-*-*-*" ;; tight club
  513. "-*-zfr-*-*-*-*-5-*-*-*-*-*-*-*" ;; tight club
  514. "-*-referal-*-*-*-*-5-*-*-*-*-*-*-*" ;; another fave, tight club
  515. "-*-pen-*-*-*-*-5-*-*-*-*-*-*-*" ;; tight club
  516. "-*-tydls-*-*-*-*-5-*-*-*-*-*-*-*" ;; remake of classic tidyr, tight club
  517. ;; "-*-nztt-*-*-*-*-5.5-*-*-*-*-*-*-*" ;; rar
  518. "-*-nztt-*-*-*-*-6-*-*-*-*-*-*-*" ;; my fave (scalable)
  519. ;; nice, but off for flow "-*-yz-*-*-*-*-7-*-*-*-*-*-*-*" ;;"((t (:height 49 :family "yz")))"
  520. ;; nice, but off for flow "-*-tiptoe-*-*-*-*-6-*-*-*-*-*-*-*"
  521. ;; "-*-jffhlo-*-*-*-*-6-*-*-*-*-*-*-*" why was this one not on?
  522. "-*-djsl-*-*-*-*-7-*-*-*-*-*-*-*" ;; my old fave (non-scalable)
  523. ;; "-*-jffhlo-*-*-*-*-7-*-*-*-*-*-*-*"
  524. ;; ;; "-*-zia-*-*-*-*-8-*-*-*-*-*-*-*" ;;"((t (:height ?? :family "zia")))" ;; why does this not work in my devuan?
  525. "-*-mnky-*-*-*-*-12-*-*-*-*-*-*-*" ;;testing
  526. "-*-merg-*-*-*-*-16-*-*-*-*-*-*-*" ;;CONFIRMEDFONT
  527. "-*-merg-*-*-*-*-32-*-*-*-*-*-*-*" ;;
  528. "-*-carpy-*-*-*-*-10-*-*-*-*-*-*-*" ;;testing, anti-dyslexia
  529. "-*-nztt-*-*-*-*-6-*-*-*-*-*-*-*" ;; my fave (scalable)
  530. ;; "-*-jffhlo-*-*-*-*-8-*-*-*-*-*-*-*" ;;retesting
  531. "-*-jffhle-*-*-*-*-8-*-*-*-*-*-*-*" ;;retesting
  532. "-*-nztt-*-*-*-*-12-*-*-*-*-*-*-*" ;; my fave (scalable)
  533. ;; "-*-jffhlo-*-*-*-*-12-*-*-*-*-*-*-*" ;;retesting
  534. ;; "-*-jffhlo-*-*-*-*-16-*-*-*-*-*-*-*" ;;retesting
  535. "-*-jffhle-*-*-*-*-12-*-*-*-*-*-*-*" ;;retesting
  536. "-*-jffhle-*-*-*-*-16-*-*-*-*-*-*-*" ;;retesting
  537. ;; "-*-nztt-*-*-*-*-8-*-*-*-*-*-*-*" ;; my fave (scalable)
  538. ;; "-*-nztt-*-*-*-*-9-*-*-*-*-*-*-*" ;; my fave (scalable)
  539. "-*-nztt-*-*-*-*-18-*-*-*-*-*-*-*" ;; my fave (scalable)
  540. ;; "-*-jffhlo-*-*-*-*-24-*-*-*-*-*-*-*" ;;retesting
  541. "-*-jffhle-*-*-*-*-24-*-*-*-*-*-*-*" ;;retesting
  542. "-*-nztt-*-*-*-*-24-*-*-*-*-*-*-*" ;; my fave (scalable)
  543. "-*-merg-*-*-*-*-32-*-*-*-*-*-*-*" ;;
  544. "-*-nztt-*-*-*-*-32-*-*-*-*-*-*-*" ;; my fave (scalable)
  545. ;; "-*-jffhlo-*-*-*-*-32-*-*-*-*-*-*-*" ;;
  546. "-*-jffhle-*-*-*-*-32-*-*-*-*-*-*-*" ;;
  547. "-*-merg-*-*-*-*-64-*-*-*-*-*-*-*" ;;CONFIRMEDFONT
  548. "-*-nztt-*-*-*-*-64-*-*-*-*-*-*-*" ;; my fave (scalable)
  549. ;; "-*-jffhlo-*-*-*-*-64-*-*-*-*-*-*-*" ;; jffhlor & jffhlu too, btw. but the hle version has copyright and registered copyright too. :3 progress. :)
  550. "-*-jffhle-*-*-*-*-64-*-*-*-*-*-*-*" ;;
  551. "-*-merg-*-*-*-*-128-*-*-*-*-*-*-*" ;;CONFIRMEDFONT
  552. ))
  553. ;; TO DO: multiple chains of these. n then modally nested, so can switch across to different chains of font increments... will be able to keep em all same then! yay.
  554. ;;(setq font-zoom-list
  555. ;; (list ;;"-*-yz-*-*-*-*-5-*-*-*-*-*-*-*"
  556. ;; "-*-merg-*-*-*-*-16-*-*-*-*-*-*-*" ;;testing
  557. ;; "-*-merg-*-*-*-*-16-*-*-*-*-*-*-*" ;;testing
  558. ;;;; "-*-merg-*-*-*-*-17-*-*-*-*-*-*-*" ;;testing
  559. ;;;; "-*-merg-*-*-*-*-18-*-*-*-*-*-*-*" ;;testing
  560. ;;;; "-*-merg-*-*-*-*-19-*-*-*-*-*-*-*" ;;testing
  561. ;; "-*-merg-*-*-*-*-20-*-*-*-*-*-*-*" ;;testing
  562. ;; "-*-merg-*-*-*-*-24-*-*-*-*-*-*-*" ;;testing
  563. ;; "-*-merg-*-*-*-*-32-*-*-*-*-*-*-*" ;;testing
  564. ;; "-*-bf-*-*-*-*-4-*-*-*-*-*-*-*" ;;
  565. ;;;; "-*-'qnub-test'-*-*-*-*-4-*-*-*-*-*-*-*" ;;
  566. ;;;; "-*-tydls-*-*-*-*-6-*-*-*-*-*-*-*" ;;
  567. ;; ;; "-*-nzt-*-*-*-*-6-*-*-*-*-*-*-*" ;;"((t (:height 42 :family "nzt")))"
  568. ;; "-*-brf-*-*-*-*-5-*-*-*-*-*-*-*"
  569. ;; "-*-zfr-*-*-*-*-5-*-*-*-*-*-*-*"
  570. ;; "-*-referal-*-*-*-*-5-*-*-*-*-*-*-*"
  571. ;; "-*-pen-*-*-*-*-5-*-*-*-*-*-*-*"
  572. ;; "-*-tydls-*-*-*-*-7-*-*-*-*-*-*-*"
  573. ;; "-*-nztt-*-*-*-*-6-*-*-*-*-*-*-*" ;; my fave (scalable)
  574. ;; "-*-yz-*-*-*-*-7-*-*-*-*-*-*-*" ;;"((t (:height 49 :family "yz")))"
  575. ;; "-*-tiptoe-*-*-*-*-6-*-*-*-*-*-*-*"
  576. ;;;; "-*-jffhlo-*-*-*-*-6-*-*-*-*-*-*-*"
  577. ;; "-*-djsl-*-*-*-*-7-*-*-*-*-*-*-*" ;; my old fave (non-scalable)
  578. ;;;; "-*-jffhlo-*-*-*-*-7-*-*-*-*-*-*-*"
  579. ;; ;; "-*-zia-*-*-*-*-8-*-*-*-*-*-*-*" ;;"((t (:height ?? :family "zia")))" ;; why does this not work in my devuan?
  580. ;; "-*-mnky-*-*-*-*-12-*-*-*-*-*-*-*" ;;testing
  581. ;; "-*-merg-*-*-*-*-15-*-*-*-*-*-*-*" ;;testing
  582. ;; "-*-merg-*-*-*-*-16-*-*-*-*-*-*-*" ;;testing
  583. ;; "-*-merg-*-*-*-*-17-*-*-*-*-*-*-*" ;;testing
  584. ;; "-*-merg-*-*-*-*-18-*-*-*-*-*-*-*" ;;testing
  585. ;; "-*-merg-*-*-*-*-19-*-*-*-*-*-*-*" ;;testing
  586. ;; ;; "-*-zem-*-*-*-*-12-*-*-*-*-*-*-*" ;;"((t (:height 87 :family "zem")))"
  587. ;; "-*-jffhlo-*-*-*-*-8-*-*-*-*-*-*-*" ;;"((t (:height 57-63 :family "jjfh")))" ;; jffhlo better than jffh
  588. ;; "-*-carpy-*-*-*-*-10-*-*-*-*-*-*-*" ;;testing
  589. ;; "-*-clso-*-*-*-*-12-*-*-*-*-*-*-*" ;;testing
  590. ;; "-*-bggf-*-*-*-*-9-*-*-*-*-*-*-*" ;;"((t (:height 64 :family "bggf")))"
  591. ;; "-*-djfl-*-*-*-*-12-*-*-*-*-*-*-*" ;;testing
  592. ;; "-*-jffhlo-*-*-*-*-12-*-*-*-*-*-*-*" ;;"((t (:height 57-63 :family "jjfh")))" ;; jffhlo better than jffh
  593. ;; "-*-wastest-*-*-*-*-16-*-*-*-*-*-*-*" ;;"((t (:height 120 :family "wastest")))"
  594. ;; "-*-jffhlo-*-*-*-*-16-*-*-*-*-*-*-*" ;;"((t (:height 57-63 :family "jjfh")))" ;; jffhlo better than jffh
  595. ;; ;; "-*-hurpicat-*-*-*-*-25-*-*-*-*-*-*-*";;"((t (:height ??? :family "bggf")))"
  596. ;; "-*-merg-*-*-*-*-32-*-*-*-*-*-*-*" ;;testing
  597. ;; "-*-bggf-*-*-*-*-19-*-*-*-*-*-*-*";;"((t (:height ??? :family "bggf")))"
  598. ;; "-*-djfl-*-*-*-*-22-*-*-*-*-*-*-*";;"((t (:height ??? :family "djfl")))"
  599. ;; "-*-bggf-*-*-*-*-27-*-*-*-*-*-*-*";;"((t (:height ??? :family "bggf")))"
  600. ;; "-*-bggf-*-*-*-*-32-*-*-*-*-*-*-*";;"((t (:height ??? :family "bggf")))"
  601. ;; "-*-bggf-*-*-*-*-38-*-*-*-*-*-*-*";;"((t (:height ??? :family "bggf")))"
  602. ;; "-*-nztt-*-*-*-*-57-*-*-*-*-*-*-*";;"((t (:height ??? :family "bggf")))"
  603. ;; "-*-zia-*-*-*-*-62-*-*-*-*-*-*-*";;"((t (:height ??? :family "bggf")))"
  604. ;;;;"-*-yz-*-*-*-*-5-*-*-*-*-*-*-*"
  605. ;; "-*-jffhlo-*-*-*-*-65-*-*-*-*-*-*-*" ;;
  606. ;;;; "-*-'qnub-test'-*-*-*-*-4-*-*-*-*-*-*-*" ;;
  607. ;;;; "-*-tydls-*-*-*-*-6-*-*-*-*-*-*-*" ;;
  608. ;; ;; "-*-nzt-*-*-*-*-6-*-*-*-*-*-*-*" ;;"((t (:height 42 :family "nzt")))"
  609. ;; "-*-nztt-*-*-*-*-69-*-*-*-*-*-*-*"
  610. ;;;; "-*-yz-*-*-*-*-7-*-*-*-*-*-*-*" ;;"((t (:height 49 :family "yz")))"
  611. ;; "-*-zia-*-*-*-*-72-*-*-*-*-*-*-*" ;;"((t (:height ?? :family "zia")))"
  612. ;;; "-*-mnky-*-*-*-*-12-*-*-*-*-*-*-*" ;;testing
  613. ;; ;; "-*-zem-*-*-*-*-12-*-*-*-*-*-*-*" ;;"((t (:height 87 :family "zem")))"
  614. ;; "-*-jffhlo-*-*-*-*-75-*-*-*-*-*-*-*" ;;"((t (:height 57-63 :family "jjfh")))" ;; jffhlo better than jffh
  615. ;; "-*-bggf-*-*-*-*-80-*-*-*-*-*-*-*" ;;"((t (:height 64 :family "bggf")))"
  616. ;; "-*-djfl-*-*-*-*-88-*-*-*-*-*-*-*" ;;testing
  617. ;; "-*-wastest-*-*-*-*-90-*-*-*-*-*-*-*" ;;"((t (:height 120 :family "wastest")))"
  618. ;; "-*-jffhlo-*-*-*-*-92-*-*-*-*-*-*-*" ;;"((t (:height 57-63 :family "jjfh")))" ;; jffhlo better than jffh
  619. ;; "-*-bggf-*-*-*-*-98-*-*-*-*-*-*-*";;"((t (:height ??? :family "bggf")))"
  620. ;; "-*-djfl-*-*-*-*-102-*-*-*-*-*-*-*";;"((t (:height ??? :family "djfl")))"
  621. ;; "-*-bggf-*-*-*-*-104-*-*-*-*-*-*-*";;"((t (:height ??? :family "bggf")))"
  622. ;; "-*-bggf-*-*-*-*-120-*-*-*-*-*-*-*";;"((t (:height ??? :family "bggf")))"
  623. ;; "-*-nztt-*-*-*-*-130-*-*-*-*-*-*-*";;"((t (:height ??? :family "bggf")))"
  624. ;; "-*-zia-*-*-*-*-144-*-*-*-*-*-*-*";;"((t (:height ??? :family "bggf")))"
  625. ;; ))
  626. ;; ^ so that works great. might wanna try adding https://www.emacswiki.org/emacs/stripes.el or something, to help with readability speed in those super-tight tiny fonts.
  627. ;; reminder of the old nice default:
  628. ;; '(default ((t (:inherit nil :stipple nil :background "#100a05" :foreground "#eec055" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 91 :width normal :foundry "unknown" :family "jffhlo"))))
  629. ;
  630. (defun font-zoom-increase-font-size ()
  631. (interactive)
  632. (progn
  633. (setq font-zoom-index (min (- (length font-zoom-list) 1)
  634. (+ font-zoom-index 1)))
  635. (set-frame-font (nth font-zoom-index font-zoom-list))))
  636. ;
  637. (defun font-zoom-decrease-font-size ()
  638. (interactive)
  639. (progn
  640. (setq font-zoom-index (max 0
  641. (- font-zoom-index 1)))
  642. (set-frame-font (nth font-zoom-index font-zoom-list))))
  643. ;
  644. (defun font-zoom-reset-font-size ()
  645. (interactive)
  646. (progn
  647. (setq font-zoom-index default-font-zoom-index)
  648. (set-frame-font (nth font-zoom-index font-zoom-list))))
  649. ;
  650. (define-key global-map (read-kbd-macro "C--") 'font-zoom-decrease-font-size)
  651. (define-key global-map (read-kbd-macro "C-=") 'font-zoom-increase-font-size)
  652. (define-key global-map (read-kbd-macro "C-0") 'font-zoom-reset-font-size)
  653. ;
  654. (set-frame-font (nth font-zoom-index font-zoom-list)) ;;
  655. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  656. ;; funky start fonts ¯\_(ツ)_/¯ ; ;
  657. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  658. ;;(setq fancy-startup-text )
  659. ;;wanted;;;;"There's no shame in the truth.")
  660. ;;wanted;;;;((t (:foreground "#988262" :family "grgi")))))
  661. ;;(setq fancy-about-text )
  662. ;;wanted;;;;"Their's know shaman, the truth.")
  663. ;;wanted;;;;((t (:foreground "#988262" :family "grgi")))))
  664. ;;(defface fancy-about-text-face '((t ;;(:background "#029" :foreground "#f0f" :family "hurpicat")))
  665. ;; "a face to highlight the start"
  666. ;; :group 'faces)
  667. ;; adapted from https://ergoemacs.googlecode.com/svn/trunk/ergoemacs/init_version.el
  668. ;;(setq fancy-startup-text nil)
  669. ;;(setq fancy-startup-text nil)
  670. (setq fancy-startup-text
  671. ;; '((:face (variable-pitch (:background "#207" :foreground "#ff0" :height 55 :family "nzt"))
  672. '((:face (variable-pitch (:inherit default :height 72 :family "jffhlo"))
  673. "This is "
  674. :link ("DigitEmacs"
  675. (lambda (button) (browse-url "http://www.gnu.org/software/emacs/")))
  676. ".\n\n"
  677. "and dont u forget it."
  678. ".\n\n")))
  679. ;;(setq fancy-about-text
  680. ;; '(((lambda () (emacs-version))
  681. ;; "\n\n"
  682. ;; :face (variable-pitch (:inherit nil :stipple nil :background "#100a05" :foreground "#eec055" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 55 :width normal :foundry "unknown" :height 42 :family "nzt"))
  683. ;; "\tEmacs contributors\n"
  684. ;; :link ("GNU Emacs Authors"
  685. ;; (lambda (button)
  686. ;; (view-file (expand-file-name "AUTHORS" data-directory))
  687. ;; (goto-char (point-min))))
  688. ;; "\n"
  689. ;; :face (variable-pitch (:slant oblique))
  690. ;; "meep meep ABSOLUTELY NO WARRANTY\n"
  691. ;; :face variable-pitch
  692. ;; "\n"
  693. ;; )))
  694. ;; menus!
  695. ;;
  696. ;;[2016-05-18 22:20:53] <n2o4> Basically you could write menus to any major/minor mode and use them.
  697. ;;[2016-05-18 22:21:51] <n2o4> Can't remember having toyed with them too much, but I think they're just named, sparse key-maps with some kind of menu-identifier.
  698. ;;[2016-05-18 22:22:03] * Digit doesnt remember if it was 2013 or 2010 he started emacsing
  699. ;;[2016-05-18 22:22:57] <n2o4> Ie. (define-key menumap [menu description] "Docstring" . function)
  700. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  701. ;;haskell mode stuff, gawdamnit i want haskell-mode! :>
  702. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  703. ;; melpa first.
  704. ;; with or without proper haskell mode, can have tidal (with Dirt)
  705. ;;You will have to start dirt every time you want to run Tidal, otherwise there will be no sound.
  706. ;; from shell: cd ~/gittings/Dirt && ./dirt &
  707. ;;(add-to-list 'load-path "~/audiostuff/_tidal")
  708. ;;(add-to-list 'load-path "~/gittings/haskell-mode")
  709. ;;(require 'haskell-mode)
  710. ;;(require 'tidal)
  711. ;;;; ^ If tidal.el did not come with this document, you can grab it here: https://raw.github.com/yaxu/Tidal/master/tidal.el
  712. ;;;; n like, put it somewhere loadable.
  713. ;; testing autojoin on ident, rather than autojoin on connection. so if things are bork next time i restart erc, that'll likely be why.
  714. (require 'package)
  715. (custom-set-variables
  716. ;; custom-set-variables was added by Custom.
  717. ;; If you edit it by hand, you could mess it up, so be careful.
  718. ;; Your init file should contain only one such instance.
  719. ;; If there is more than one, they won't work right.
  720. '(browse-url-browser-display nil)
  721. '(elfeed-feeds (quote ("https://stallman.org/rss/rss.xml")) t)
  722. '(erc-accidental-paste-threshold-seconds 1)
  723. '(erc-autoaway-idle-seconds 802200)
  724. '(erc-autoaway-message
  725. "Digit (innactive for %i seconds)... probably flying a griffin through space")
  726. '(erc-autoaway-mode t)
  727. '(erc-autojoin-mode t)
  728. '(erc-autojoin-timing (quote ident))
  729. '(erc-button-buttonize-nicks t)
  730. '(erc-button-mode t)
  731. '(erc-fill-column 112)
  732. '(erc-fool-highlight-type (quote all))
  733. '(erc-fools
  734. (quote
  735. ("woodwose" "gullibleisland" "devfx11" "n01d" "DaemonFC" "rtn0" "Blukunfando" "blitzkraft" "sorcerer" "SUP3RN3T5" "cosmicblue" "mefisofeles" "drakken" "rabbitear" "rabbitear_g" "parrotlover" "deusexmachina" "NoImNotNineVolt" "CrystalMath" "moaz" "travis-ci" "irc-core" "void-" "xbps-builder" "DevTwo" "DevFour" "dfoolz" "forcer" "aidalgol" "theplic" "Gremble" "storge" "TheRedMoo*" "TheRedMood" "rHermes" "rrHermes" "darryl" "snubby" "snobby" "zebrapig" "Jovo" "(^dka)bot!" "(^luna)cat[1|2](^8)" "Weedykins" "irker*" "Anonymoose" "Anonymoooose" "fsbot" "Agent_K" "Mr_K" "apm1" "savior" "alazare619" "variegata" "eth0ghost" "merrigan" "gerritwk23" "jenkins-exherbo" "exherbo-commits" "Lorentz" "bobysdadda" "boboysdadda" "seonel97" "NixOS_GitHub" "Derpadong" "onetwo" "onetwo_" "ic2000" "geggam" "Myau" "Tipping_Fedora" "baotunggg" "c_smith" "ringo32" "TestingTe" "McClane2" "MatthewAllan93" "swift110" "vimuser" "calher" "-travis-ci-" "systemd" "punkjesus" "wigums" "phanes" "cpunches" "Jookia" "Halts" "Leah" "Tazy" "orbea" "BobPage" "RandIter" "_ohm" "bonsaikitten" "convexed_cave" "iamben" "The_Document" "noodlepie" "phizzy" "phizzy_" "egnuph" "dugz" "z6np" "beanandana" "Angélica" "QcMat" "Bacta" "drakonis" "fpbot" "hiya" "spacedust" "kstigs" "kreyren" "Angelica" "Sam_Hyde" "Anselmo" "khronosschoty")) nil nil "if you argue with fools... but anyhoo, not all here are fools (e.g. some are bots), but still wise not argue with them. best avoid such escalations (because convictions become identities and then challenges provoke fight (or flight, or freeze)). dont let the trolls bait you into their tar pits. no need for drama, egotism, hate n stinky shar-chi negative vibes. - so this list is just to prevent my hot head escalating drama. more readily keeps the peace.")
  736. '(erc-hide-list (quote ("JOIN" "PART" "QUIT")))
  737. '(erc-highlight-nicknames-mode t)
  738. '(erc-input-line-position -2)
  739. '(erc-irccontrols-mode t)
  740. '(erc-keep-place-mode t)
  741. '(erc-list-mode t)
  742. '(erc-log-mode t)
  743. '(erc-lurker-hide-list (quote ("JOIN" "PART" "QUIT")))
  744. '(erc-lurker-threshold-time 1950)
  745. '(erc-match-mode t)
  746. '(erc-max-buffer-size 190000)
  747. '(erc-menu-mode t)
  748. '(erc-modules
  749. (quote
  750. (autoaway autojoin button completion irccontrols list match menu move-to-prompt netsplit networks noncommands readonly ring scrolltobottom stamp track)))
  751. '(erc-move-to-prompt-mode t)
  752. '(erc-netsplit-mode t)
  753. '(erc-networks-mode t)
  754. '(erc-nick "Digit")
  755. '(erc-nick-uniquifier "Digitteknohippie")
  756. '(erc-noncommands-mode t)
  757. '(erc-notify-list
  758. (quote
  759. ("Rognvald" "ivylearog" "lo9rd" "jukilop0" "Stoffel" "valroadie")))
  760. '(erc-notify-mode t)
  761. '(erc-notify-signoff-hook (quote (erc-notify-signoff)))
  762. '(erc-notify-signon-hook (quote (erc-notify-signon)))
  763. '(erc-pal-highlight-type (quote nick))
  764. '(erc-part-reason (quote erc-part-reason-normal))
  765. '(erc-part-reason-various-alist (quote (("" "still here in spirit"))))
  766. '(erc-pcomplete-mode t)
  767. '(erc-prompt "ommmmmmmmm")
  768. '(erc-readonly-mode t)
  769. '(erc-ring-mode t)
  770. '(erc-server-flood-margin 10)
  771. '(erc-server-flood-penalty 3)
  772. '(erc-spelling-mode t)
  773. '(erc-stamp-mode t)
  774. '(erc-text-matched-hook (quote (erc-log-matches)))
  775. '(erc-timestamp-format "[%Y-%m-%e %H:%M:%S] ")
  776. '(erc-timestamp-format-left "[%Y-%m-%e %H:%M:%S] ")
  777. '(erc-timestamp-format-right nil)
  778. '(erc-timestamp-only-if-changed-flag nil)
  779. '(erc-track-minor-mode t)
  780. '(erc-track-mode t)
  781. '(erc-truncate-mode t)
  782. '(erc-user-full-name "Digit")
  783. '(fancy-splash-image
  784. "/home/digit/images/avatars/digitlogo2016dropfrominfinity.png")
  785. '(nil nil t)
  786. '(org-agenda-files (quote ("/home/digit/digit.org")))
  787. '(package-archives
  788. (quote
  789. (("gnu" . "http://elpa.gnu.org/packages/")
  790. ("melpa-stable" . "http://stable.melpa.org/packages/"))))
  791. '(package-selected-packages
  792. (quote
  793. (rainbow-mode fish-mode ghc-imported-from ghc ac-haskell-process)))
  794. '(scroll-bar-mode (quote right))
  795. '(shift-select-mode t))
  796. ;;https://github.com/haskell/haskell-mode
  797. ;; ^ haskell mode sorted from that.
  798. ;; now wud work better with contrib installed too, derp. darcs get http://code.haskell.org/XMonadContrib
  799. ;;copy and pastes from old .emacs ~ do i need to say that still? edited.
  800. ;; wrapping
  801. (global-visual-line-mode 1)
  802. ;; line numbers
  803. (global-linum-mode 0)
  804. ;; kill visual line
  805. ;; kill visual line stuff removed due to behaving ilogically
  806. ;; scrollbar on right
  807. ;; (set-scroll-bar-mode 'right)
  808. ;; no scrollbar
  809. ;;(scroll-bar-mode -1)
  810. ;; no menubar
  811. (menu-bar-mode -1)
  812. ;; no toolbar
  813. (tool-bar-mode -1)
  814. ;; you're a winner! (i forget why... what's winner mode?)
  815. (when (fboundp 'winner-mode)
  816. (winner-mode 1))
  817. ;;i wanna bind mouse-8 to winner undo, and mouse-9 to winner undo undo. global map? i think so
  818. ;;(define-key global-map [mouse-8] 'winner-undo)
  819. (global-set-key [mouse-8] 'winner-undo)
  820. (global-set-key [mouse-9] 'winner-redo)
  821. ;;i think i wanna bind C mouse-8 to some "back" specific to pane(window) and C mouse-9 to forward equivalent.
  822. ;; SAURON STUFF ==== SAURON STUFF ==== SAURON STUFF
  823. ;; sauron Sauron
  824. ;;(add-to-list 'load-path "/home/digit/gittings/sauron");; ok so how i add sauron-start-hidden?
  825. ;;(require 'sauron)
  826. ;;(setq
  827. ;; yeah, so this is happening. :) leet length in sauron.
  828. ;; sauron-max-line-length 1337
  829. ;; whadelseugot?
  830. ;; sauron-watchpatterns
  831. ;; '("\\bbedrock\\b" "brg" "witch" "sauron" "tydls" "nzt" "tidyr" "\\bdbtfc\\b")
  832. ;; ^ these no work. sauron's not watching. hrm. erc keywords n highlights work. but these escape sauron's gaze.
  833. ;;sauron-watch-nicks
  834. ;; '("lo9rd" "lo9rd1" "tuseau2" "slam" "wgreenhouse" "ambo")
  835. ;; ;; blocking events
  836. ;;(add-hook 'sauron-event-block-functions
  837. ;; (lambda (origin prio msg &optional props)
  838. ;; (or
  839. ;; (string-match "has quit" msg) ;; ignore events that match 'foo'
  840. ;; ;; other matchers
  841. ;; )))
  842. ;; timeout duration to prevent swampings
  843. ;; sauron-nick-insensitivity 420
  844. ;; )
  845. ;;;; ^ see sauron's README.org for more tips. it gooood. ~/gittings/sauron/README.org
  846. ;;;; as found in https://github.com/djcb/sauron#blocking-events-from-showing-up--sauron-event-block-functions
  847. ;;(add-hook 'sauron-event-block-functions
  848. ;; (lambda (origin prio msg &optional props)
  849. ;; (or
  850. ;; (string-match "#haskell" msg) ;; ignore events that match '#haskell', hopefully letting my existence in haskell be pleasant.
  851. ;; other matchers
  852. ;; )));; will wanna toggle this disabled for a while whenever wanting help in #haskell again for a while.
  853. ;; ok, lets see if adding this like this launches sauron in the background when emacs starts...
  854. ;;(sauron-start-hidden)
  855. ;; ERC STUFF ==== ERC STUFF ==== ERC STUFF
  856. ;; http://www.gnu.org/software/emacs/manual/html_mono/erc.html & emacs erc wiki
  857. ;; tls/ssl stuff for erc n stuff
  858. ;;<Oejet> Hi Digit, I'd like you to consider switching on TLS in your client. It's not too difficult in ERC:
  859. ;;[2016-04-25 17:52:29] <Oejet> M-x erc-tls
  860. ;;<Oejet> IRC server: chat.freenode.net
  861. ;;<Oejet> IRC port: 6697
  862. ;;[2016-04-25 18:22:38] <Digit> thanks! you made that sound really simple. i was about to M-x erc-tls, then i read https://www.emacswiki.org/emacs/ErcSSL and am back to intimidated. ^_^
  863. ;;[2016-04-25 18:24:05] <Oejet> I read that page first, and was highly confused.
  864. ;;[2016-04-25 18:25:44] <Oejet> It's not necessary at all.
  865. ;;[2016-04-25 18:26:36] <Oejet> Do you run ERC by typing: `M-x erc`?
  866. ;;[2016-04-25 18:42:59] <Digit> yup
  867. ;;^ Oejet says not necessary
  868. ;;(require 'tls)
  869. ;; lets you clear the buffers, lightening the load.
  870. ;; try /flush
  871. ;; see here for more info:
  872. ;; http://www.emacswiki.org/emacs/ErcTruncation
  873. (defun erc-cmd-FLUSH (&rest ignore)
  874. "Erase the current buffer."
  875. (let ((inhibit-read-only t))
  876. (erase-buffer)
  877. (message "Flushed contents of channel")
  878. t))
  879. ;; see http://www.emacswiki.org/emacs/ErcScrollToBottom
  880. ;; set erc to keep the text entry line at the bottom of screen -nil, -1, -2
  881. ;; but supposedly this is only for carbon emacs... see the next entry for the redisplay bugfix
  882. (setq erc-input-line-position -2)
  883. ;; ErcScrollToBottom, redisplay bug fix (yes, it's long)
  884. ;;; Replacement functions to unbreak `erc-hide-list' for ERC 5.3
  885. (defun erc-display-buffer-list (buffer)
  886. "Sanitize a 'buffer' name or list, and convert to a buffer-name list."
  887. (cond ((bufferp buffer) (list buffer))
  888. ((listp buffer) buffer)
  889. ((processp buffer) (list (process-buffer buffer)))
  890. ((eq 'all buffer)
  891. ;; Hmm, or all of the same session server?
  892. (erc-buffer-list nil erc-server-process))
  893. ((and (eq 'active buffer) (erc-active-buffer))
  894. (list (erc-active-buffer)))
  895. ((erc-server-buffer-live-p)
  896. (list (process-buffer erc-server-process)))
  897. (t (list (current-buffer)))))
  898. (defun erc-display-message (parsed type buffer msg &rest args)
  899. "Display MSG in BUFFER.
  900. ARGS, PARSED, and TYPE are used to format MSG sensibly.
  901. See also `erc-format-message' and `erc-display-line'."
  902. (let ((string (if (symbolp msg)
  903. (apply 'erc-format-message msg args)
  904. msg)))
  905. (setq string
  906. (cond
  907. ((null type)
  908. string)
  909. ((listp type)
  910. (mapc (lambda (type)
  911. (setq string
  912. (erc-display-message-highlight type string)))
  913. type)
  914. string)
  915. ((symbolp type)
  916. (erc-display-message-highlight type string))))
  917. (if (not (erc-response-p parsed))
  918. (erc-display-line string buffer)
  919. (erc-put-text-property 0 (length string) 'erc-parsed parsed string)
  920. (erc-put-text-property 0 (length string) 'rear-sticky t string)
  921. (dolist (buf (erc-display-buffer-list buffer))
  922. (unless (member (erc-response.command parsed)
  923. (with-current-buffer buf
  924. erc-hide-list))
  925. (erc-display-line string buffer))))))
  926. ;;move me to erc section
  927. ;;
  928. ;; may wanna add the other nicks of spacedust as they arise. you'll likely be able to tell by how riled up you get
  929. (setq erc-ignore-list '("Tazy" "dfoolz" "Tazy_" "rabbitear_g" "phizzy" "phizzynoodle" "noodlepie"))
  930. ;; ahhh, oops, i did have spacedust on ignore... will add again next time i get riled up by em.
  931. ;;move me to erc section
  932. ;; foolery
  933. ;;[2020-11- 1 21:36:00] <wgreenhouse> Digit: when foolery reaches a higher level, I (add-hook 'erc-text-matched-hook 'erc-hide-fools) and customize erc-log-matches-types-alist to make a match buffer for fools
  934. ;;[2020-11- 1 21:36:26] <wgreenhouse> then they (or replies to them) never show up in the main channel, but I can refer to another buffer at leisure
  935. ;;[2020-11- 1 21:39:04] <wgreenhouse> you can skip the second step if the foolish content is likely discardable without even looking at the other buffer
  936. ;;(add-hook 'erc-text-matched-hook 'erc-hide-fools)
  937. ;; mark the line between read and unread
  938. ;; keeps possition rather than marking the line, unfortunately.
  939. ;;(erc-keep-place-mode 1)
  940. ;; lets sort this jumping to middle of the screen crap, once n for all.
  941. ;; https://www.gnu.org/software/emacs/manual/html_node/emacs/Auto-Scrolling.html#Auto-Scrolling
  942. (setq scroll-margin 1
  943. scroll-conservatively 0
  944. ;; scroll-up-aggressively 0.01 ;; ? involved in the erroneous behavior of scrolling to top ?
  945. scroll-down-aggressively 0.01)
  946. (setq-default scroll-down-aggressively 0.01)
  947. ;; (setq-default scroll-up-aggressively 0.01) ;; removed for testing
  948. (setq scroll-step 1) ;; claimed to risk display lock-up in some cases... leaving on until that happens.
  949. (setq scroll-conservatively 10000)
  950. (setq auto-window-vscroll nil)
  951. ;;(setq auto-save-interval 9000) ;; lets see if that matters at all... ~~ it wont, but desperate.
  952. ;; ^ testing this out... hopefully that fixes the scroll issue. found that help in https://www.emacswiki.org/emacs/SmoothScrolling
  953. ;; after reading the tips there, i'm starting to suspect my line wrap is involved in the times when it jumps.
  954. ;; however...
  955. ;; something i've added with these new lines has caused the jumps to go to the top of the screen, not the middle, when it does jump. scroll-up-aggressively?
  956. ;;chans to autojoin
  957. (setq erc-autojoin-channels-alist
  958. ;; minimal list:
  959. ;;'(("freenode.net" "#witchnix")
  960. ;; while testing erc fixes list:
  961. ;;'(("freenode.net" "#witchnix" "#cowtapult" "#erc" "#emacs-beginners")
  962. ;;prior full list:
  963. ;;'(("freenode.net" "#witchlinux" "#witchnix" "#whichlinux" "#cowtapult" "#muhcows" "#dev-cowtapult" "#muhcows-factoids" "#bedrock" "##bedrock-chat" "#freepost" "#geekhack" "#uzbl" "##crunchbang" "#guix" "#emacs-beginners" "#erc" "#tidal" "#haskell-irc" "#yi" "#libertybsd" "#jackbang" "#pioneer" "#fsf-members" "#fsfe" "#dragora" "#devuan" "#gentoo-chat")
  964. ;; about
  965. ;; added caclulate
  966. ;; for help getting net on laptop again. ... which was probably just my cable loose. try again back n forth between mate and spectrwm.
  967. ;; added
  968. '(
  969. ("irc.rizon.net" "#cloveros" "#computertech")
  970. ;; ("freenode.net" "#gentoo-reiki" "#freenode");;testing for fix
  971. ;; https://geti2p.net/en/faq
  972. ;;("irc2p" "")
  973. ("freenode.net" "#witchlinux" "#akashicwhatever" "#witchnix" "#peers" "#emacs-beginners" "#erc" "#vervis" "#muhcows" "##rms" "#cultivators" "#gentoo-weed" "#exherbo" "#carbs") ; should be sanely minimal while mending.
  974. ;; trimming this again, while back-n-forth mending things. keeping this to return to.
  975. ;; ("freenode.net" "#gnu-health" "#witchlinux" "#akashicwhatever" "#witchnix" "#bedrock" "##bedrock-chat" "#peers" "#geekhack" "#emacs-beginners" "#erc" "#fsf-members" "#fsf" "#vervis" "#libreplanet" "#muhcows" "#voidlinux" "##rms" "#spaceshipsforeverybody" "#soffmimuhod" "#cultivators" "#artix" "#exherbo" "#fish" "#carbslinux" "#i3" "#youtube-dl" "#gentoo-weed" "#clfswm") ; this was getting long again then i decided to add each distro i'm using with bedrock.... ok, some... ok, just #exherbo. not gona have #artix, #devuan, #gentoo, etc. #arya too? you added it... do it without systemd?
  976. ;; ("freenode.net" "#gnu-health" "#witchlinux" "#akashicwhatever" "#witchnix" "#bedrock" "##bedrock-chat" "#peers" "#geekhack" "#emacs-beginners" "#erc" "#fsf-members" "#fsf" "##gentoo-reiki" "#vervis" "#libreplanet" "#muhcows" "#voidlinux" "##rms" "#spaceshipsforeverybody" "#techrights" "##boardsofcanada" "#soffmimuhod" "##gentoo-herb" "##bedrock-ganja" "#cultivators" "#tricorders" "#yi" "#vsido" "#gentoo-weed") ; this getting long again..
  977. ;; that didnt quite take.
  978. ;; sad to see #gentoo-weed and #cultivators go. thanks sorceror for starting this new chapter in my life for me. might as well get rid of the funtoos too, n keep this trim.
  979. ;;;;;;;; as of 20200629, due to sorceror's unfathomnable vindictive hot headed wilful ignorance and lack of an educated mind. just not safe. in #cultavators and #gentoo-weed anymore. so i start a new chapter in my life now.
  980. ;; ("freenode.net" "#gnu-health" "#witchlinux" "#akashicwhatever" "#witchnix" "#whichlinux" "#dev-cowtapult" "#bedrock" "##bedrock-chat" "#peers" "#geekhack" "#emacs-beginners" "#erc" "#fsf-members" "#fsf" "#gentoo-weed" "##gentoo-reiki" "#gentoo-reiki" "##scandisquad" "#vikings" "#vervis" "#libreplanet" "#muhcows" "#voidlinux" "##rms" "#funtoo" "##funtoo" "#spaceshipsforeverybody" "##funtoo-herb" "#techrights" "#cultivators" "##boardsofcanada" "#soffmimuhod") ;; this is getting too long again (trying to prune).
  981. ;; ("freenode.net" "#gnu-health" "#witchlinux" "#akashicwhatever" "#witchnix" "#whichlinux" "#dev-cowtapult" "#bedrock" "##bedrock-chat" "#peers" "#geekhack" "#emacs-beginners" "#erc" "#fsf-members" "#fsf" "#gentoo-weed" "##gentoo-reiki" "#gentoo-reiki" "##scandisquad" "#vikings" "#vervis" "#libreplanet" "#muhcows" "#voidlinux" "##rms" "#funtoo" "##funtoo" "#spaceshipsforeverybody" "##funtoo-herb" "#techrights" "##boardsofcanada") ;; this is getting too long again (trying to prune).
  982. ;; ("freenode.net" "#gnu-health" "#witchlinux" "#akashicwhatever" "#witchnix" "#whichlinux" "#dev-cowtapult" "#bedrock" "##bedrock-chat" "#peers" "#geekhack" "#emacs-beginners" "#erc" "#fsf-members" "#fsf" "#gentoo-weed" "##gentoo-reiki" "#gentoo-reiki" "##scandisquad" "#vikings" "#vervis" "#libreplanet" "#muhcows" "#voidlinux" "##rms" "#funtoo" "##funtoo" "#spaceshipsforeverybody" "##funtoo-herb" "#techrights") ;; this is getting too long again (saved in this comment as was).
  983. ;;; and dont bother going back into ##autism. Soni's feifdom there brooks no honest discussion. XD
  984. ;;; as mentioned in the chan as my parting messages after an abrupt warning without rational explanation:
  985. ;;;;; woah, rly? tell ye what... if you're gonna be running that kind of feifdom where positive suggestions and honest well intentioned discussion are taken in such a negative way... i'm out.
  986. ;;; aw. #funtoo died. https://joindiaspora.com/posts/245d2f4031b0013819bf002590d8e506 long live ##funtoo *shrug*
  987. ;;logon join woes
  988. ;; ("freenode.net" "#akashicwhatever")
  989. ;; also pruned "###bedrock-renegades" "#e" "#devuan" "#guix" "#uzbl""#libertybsd"
  990. ;; pruned some gentoos: "#redcore" "#calculate" "#cloveros"
  991. ;; someday: #littlesis #oligrapher
  992. ;; fuck going back to ##cannabis, QcMat's too much a pillock. XD lmao.
  993. ;; "#nimblypimbly" "#pioneer"
  994. ;; ##crunchbang #cannabidiol (ops)
  995. ;; #racket
  996. ;; guff list: "#muhcows-factoids" "#muhcows" "#cowtapult" "#frlev"
  997. ;; banned from ##nutrition for 3 months for posting what i thought was an amusing a pro vegan image.
  998. ;; <Digit> RandIter: are you on this diet? https://shorturl.at/dlEG2 :3
  999. ;;[2018-01-12 13:14:46] <Nutrohelper[bot]> [ (R: joindiaspora.com) (image/jpeg) 54.8KB ]
  1000. ;;[2018-01-12 13:17:06] <RandIter> Digit: btw, GOS prebiotic is far better than farty inulin
  1001. ;;[2018-01-12 13:27:10] <Digit> ach, i'm probably getting more than enough through my diet really. i just wanted something on hand to fill gaps. thnx for the tip.
  1002. ;;[2018-01-12 13:37:03] <arnthor> love me some insol fiber
  1003. ;;[2018-01-12 13:38:03] <arnthor> I was on a low fodmap diet and I think it made me severely depressed
  1004. ;;[2018-01-12 13:38:32] <arnthor> I, at least, felt so much better after introducing more veggies to my diet
  1005. ;;[2018-01-12 13:45:38] * Digit giving himself a crash course basic overview of FOS, GOS, bGOS, bc+GOS, HMO, IMO, n aware of context of genetics/epigenetics n the rest of the diet and the rest of the gut biome, n likes how he's swung through among many other tabs not yet looked at, one where he searched for "ghee and butyrate" :)
  1006. ;;[2018-01-12 13:48:37] <RandIter> Galactomune is a good GOS product but it can be a tad expensive.
  1007. ;;[2018-01-12 14:03:24] <RandIter> Digit: that was an unacceptable link you posted in this channel.
  1008. ;;[2018-01-12 14:03:45] <RandIter> Digit: the sentence is a 3 month ban.
  1009. ;;[2018-01-12 14:04:24] *** You have been kicked off channel ##nutrition by RandIter (uid32215@gateway/web/irccloud.com/x-sbcugybhszgcochp): posting a shitty image
  1010. ;;;;;;;;; and the pm exchange:
  1011. ;;[2018-01-12 14:11:30] <Digit> no warning? just straight to 3 month ban? wow.
  1012. ;;[2018-01-12 14:14:14] <RandIter> keep in touch. In 3 months you will have a great prebiotic strategy in place
  1013. ;;[2018-01-12 14:14:28] <RandIter> Looking forward to your report
  1014. ;;[2018-01-12 14:16:41] <Digit> currently taking ##nutrition off my auto-join list, and, tbh, not inclined to return if ops gonna dish out the ban hammer so suddenly without warning. frankly, i thought that was a harmless satirical whimsical way to enquire about vegan/vegetarian diet. thought i was keeping things light n friendly.
  1015. ;;[2018-01-12 14:18:21] <Digit> i'd like to know how you interpreted that image, such that it warranted a ban. is there some ~i dont know what~ that i'm missing?
  1016. ;;[2018-01-12 14:19:20] <RandIter> I frankly don't know what to make of that image.
  1017. ;;[2018-01-12 14:19:37] <RandIter> It didn't seem relevant to the channel.
  1018. ;;[2018-01-12 14:19:52] <Digit> ....???? that makes the banhammer decision even less fathomnable, if you didnt know what to make of it.
  1019. ;;[2018-01-12 14:20:30] <RandIter> It is still not relevant to the channel
  1020. ;;[2018-01-12 14:20:40] <RandIter> Anyway
  1021. ;;[2018-01-12 14:20:47] <RandIter> Bam reduced to 24h
  1022. ;;[2018-01-12 14:20:50] <Digit> n because u cant see the relevance...
  1023. ;;[2018-01-12 14:20:51] <RandIter> *ban
  1024. ;;[2018-01-12 14:21:05] <RandIter> It served no educational purpose!
  1025. ;;[2018-01-12 14:21:26] <RandIter> You can rejoin after 24h
  1026. ;;[2018-01-12 14:22:31] <Digit> maybe after i've cooled down, i'll reconsider rejoining. but that was a grotesquely souring misuse of power, from my perspective, does not make the place seem like a welcoming place to discuss nutrition anymore, knowing that's how it'll be.
  1027. ;;[2018-01-12 14:22:59] <RandIter> lol your link was not one about discussing nutrition
  1028. ;;[2018-01-12 14:23:37] <RandIter> you shouldn't cool down. you have a right to remain angry.
  1029. ;;[2018-01-12 14:23:47] <Digit> you decided so, because you couldnt see it, n so, ban-hammer. no warning. no discussion. .... you do see the problem with that approach, right?
  1030. ;;[2018-01-12 14:23:58] <RandIter> i saw it
  1031. ;;[2018-01-12 14:24:27] <RandIter> yes I couldn't see your pov
  1032. ;;[2018-01-12 14:24:51] <RandIter> feel free to stay gone
  1033. ;;[2018-01-12 14:24:57] <RandIter> have a nice day
  1034. ;;[2018-01-12 14:25:17] <RandIter> 24h is nothing
  1035. ;;[2018-01-12 14:25:27] <Digit> and... just to counter the claim it was not relevant: whether one is vegan/vegetarian or not is relevant, not only to nutrition, but to the specific topic currently at play.
  1036. ;;[2018-01-12 14:25:42] <Digit> sorry the whimsy was off the mark for you.
  1037. ;;;;;;; i'll review this later when i've cooled down to see if i was being a dick, or RandIter, or both, or neither. ... right now though, i'm fuming. what a dick. not inclined to return to RandIter's harsh feifdom.
  1038. ;;emergency list
  1039. ;; '(("freenode.net" "#somewhereoutoftheway")
  1040. ;;biglist '(("freenode.net" "#witchlinux" "#witchnix" "#cowtapult" "#dev-cowtapult" "#muhcows" "#muhcows-factoids" "#bedrock" "##bedrock-chat" "#freepost" "#gogs" "#geekhack" "#xbps" "#voidlinux" "#uzbl" "##crunchbang" "#guix" "#emacs-beginners" "#erc" "#tidal" "#freeablo" "#haskell-irc" "#yi" "#bot-cowtapult" "#libertybsd" "#flare-rpg" "#freeablo")
  1041. ;;shortlist '(("freenode.net" "#witchlinux" "#witchnix" "#cowtapult" "#bedrock" "#freepost" "#geekhack" "#uzbl" "##crunchbang" "#emacs-beginners" "#erc")
  1042. ;; '(("freenode.net" "#witchlinux" "#crunchbang" "#vsido" "##slackware" "#bedrock" "#emacs" "#linuxbbq" "#exherbo" "#muhcows" "#vsidofringe" "#delicate-linux" "#witchnix" "#queertoo" "#fsf-member" "#exherbo" "#erc" "#guix" "#nixos" "#uzbl" "#funtoo" "#nouveau")
  1043. ;;emergency help '(("freenode.net" "#freenode")
  1044. ;; meh, efnet, thought about it, but old hobbled... meh.
  1045. ("efnet.port80.se" "#scottishgreens") ;; nah, shite server, empty chan
  1046. ;; fitting for home of a scottish greens chat.
  1047. ("irc.indymedia.org" "#scottishgreens") ;; better server, still empty chan
  1048. ("oftc.net" "#vsido" "#fish" "#morpheus" "#suckless" "#gentard")
  1049. ;; ("fuge.it" "#7" "#subtlefuge" "#" "#thelovelydialect")
  1050. ;; ("thegeekgroup.org" "#thegeekgroup") ;; joelama suggested
  1051. ("gimp.org" "#gimp")
  1052. ("spotchat.org" "#nixtuts")
  1053. ("quakenet.org" "#elite-dangerous")
  1054. ("coldfront.net" "#mensa")
  1055. ("undernet.org" "#mensa" "#erowid" "#GRANDCANYON")
  1056. ("chat.serenia.net" "#sauk" "#lounge")
  1057. ("irc.mysociety.org" "#mschat"))) ;;ms, my society, not microsoft, dont worry.
  1058. ;;;;;;;;;disabling this portion, got logging fix added at start of file.;;;;;;;;;;;;;;;;
  1059. ;;;;logging
  1060. ;;;;;; https://www.emacswiki.org/emacs/ErcLogging;;
  1061. ;;;; logs location:
  1062. ;;(setq erc-log-channels-directory "~/log/")
  1063. ;;;; log on part
  1064. ;;(setq erc-save-buffer-on-part t)
  1065. ;;;;timestamps in the logs but not shown in chat.
  1066. ;;;; (setq erc-hide-timestamps t)
  1067. ;;
  1068. ;;;;autologging
  1069. ;;;; auto-saving log files on channel activity
  1070. ;;(setq erc-save-buffer-on-part nil
  1071. ;; erc-save-queries-on-quit nil
  1072. ;; erc-log-write-after-send t
  1073. ;; erc-log-write-after-insert t)
  1074. ;;;;^ (re(?))trying this method since pre5.3 seemed not to work. also added allbuffer save method bellow (may be unecessary with autosaving, idk)
  1075. ;;old pre 5.3 method
  1076. ;;(add-hook 'erc-insert-post-hook 'erc-save-buffer-in-logs)
  1077. ;;^ didnt work in initial test, leaving on to see if works once a fresh erc is started. ... doubt it. remove and return to https://www.emacswiki.org/emacs/ErcLogging for more methods to investigate
  1078. ;;adding this from https://www.emacswiki.org/emacs/ErcLogging
  1079. ;;(defadvice save-buffers-kill-emacs (before save-logs (arg) activate)
  1080. ;;(save-some-buffers t (lambda () (when (eq major-mode 'erc-mode) t))))
  1081. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1082. ;;nickilist
  1083. ;; https://www.emacswiki.org/emacs/ErcNicklist
  1084. ;; -dissabled this because it didnt work, no such file or directory...
  1085. ;;(require 'erc-nicklist)
  1086. ;;buddy list
  1087. (setq erc-pals '("dizzie" "orbea" "weebea" "jony123" "jony321" "wgreenhouse" "VastOne" "dajjal" "lo9rd" "DarkSith" "JordanG" "bongcro" "moogle*" "tuseau2" "tuseau" "paradigm" "valroadie" "cibia" "wei2912" "stoffel" "jukilop0" "xskoulax" "morlog" "Rongvlad" "fr33domlover" "XanCeleste" "Tago" "ivylearog" "chede" "chade" "dfj" "bill-auger" "bill-auger_" "el3"))
  1088. ;; "cookiemon5ter" gets added, and taken away. XD
  1089. ;; had to take off "Him" until i suss how to escape chars to prevent unintended hilights.
  1090. ;;
  1091. ;;keyword highlights
  1092. ;;(setq erc-keywords '("\\bwitch\\b" "\\berc\\b" "\\borkney\\b"))
  1093. (setq erc-keywords '(("\\bpoliticalcompass\\b" erc-keyword-face)
  1094. ("\\bwitch\\b" erc-keyword-face)
  1095. ("\\bwitchcraft\\b" erc-keyword-witchcraft-face)
  1096. ("\\bbedrock\\b" erc-keyword-bedrock-face)
  1097. ;;("\\bbot\\b" erc-keyword-bot-face)
  1098. ("\\bsavant\\b" erc-keyword-savant-face)
  1099. ("\\blunacat2\\b" erc-keyword-lunacat-face)
  1100. ;;("\\bgo_bot\\b" erc-keyword-bot-face)
  1101. ("\\bzebrapig\\b" erc-keyword-bot-face)
  1102. ("\\bsoffmi\\b" erc-keyword-soffmi-face)
  1103. ("\\bplait\\b" erc-keyword-plait-face)
  1104. ("\\bplaiter\\b" erc-keyword-plait-face)
  1105. ("\\bremaster\\b" erc-keyword-remunter-face)
  1106. ("\\bbrc\\b" erc-keyword-bedrock-face) ;; brc ("BedRock Change local Context")
  1107. ("\\bbri\\b" erc-keyword-bedrock-face) ;; bri ("BedRock Information")
  1108. ("\\bbrl\\b" erc-keyword-bedrock-face) ;; brl ("BedRock aLl")
  1109. ("\\bbrsh\\b" erc-keyword-bedrock-face) ;; brsh ("BedRock SHell")
  1110. ("\\bbrw\\b" erc-keyword-bedrock-face) ;; brw ("Bedrock Where")
  1111. ("\\bbrp\\b" erc-keyword-bedrock-face) ;; brp ("BedRock Path")
  1112. ("\\bbrs\\b" erc-keyword-bedrock-face) ;; brs ("BedRock Setup")
  1113. ("\\bbru\\b" erc-keyword-bedrock-face) ;; bru ("BedRock Union")
  1114. ("\\bbrn\\b" erc-keyword-bedrock-face) ;; brn
  1115. ("\\bbrc\\b" erc-keyword-bedrock-face)))
  1116. (defface erc-keyword-lunacat-face '((t (:background "#223355" :foreground "#88ff33")))
  1117. "ERC face to highlight occurances of the word lunacat"
  1118. :group 'erc-faces)
  1119. (defface erc-keyword-witcraft-face '((t (:background "#990077")))
  1120. "ERC face to highlight occurances of the word witchcraft"
  1121. :group 'erc-faces)
  1122. (defface erc-keyword-bedrock-face '((t (:foreground "#55ff00" :background "#111111")))
  1123. "ERC face to highlight occurances of the word bedrock"
  1124. :group 'erc-faces)
  1125. (defface erc-keyword-savant-face '((t (:foreground "#608" :background "#ff0")))
  1126. "ERC face to highlight occurances of the word savant"
  1127. :group 'erc-faces)
  1128. (defface erc-keyword-bot-face '((t (:foreground "#8800ff")))
  1129. "ERC face to highlight bots"
  1130. :group 'erc-faces)
  1131. (defface erc-keyword-soffmi-face '((t (:background "#beeeef")))
  1132. "ERC face to highlight soffmi"
  1133. :group 'erc-faces)
  1134. (defface erc-keyword-plait-face '((t (:background "#029" :foreground "#f0f" :family "hurpicat")))
  1135. "ERC face to highlight plait"
  1136. :group 'erc-faces)
  1137. (defface erc-keyword-remunter-face '((t (:background "#b0f" :foreground "#f80" :family "hurpicat")))
  1138. "ERC face to highlight remaster"
  1139. :group 'erc-faces)
  1140. ;; how many characters per line u want?
  1141. ;; simply:
  1142. ;; (setq erc-fill-column 88)
  1143. ;; complexly:
  1144. ;; adjusts per size of screen... new lines only, can look messy with stuff already on screen.
  1145. (add-hook 'window-configuration-change-hook
  1146. '(lambda ()
  1147. (setq erc-fill-column (- (window-width) 2))))
  1148. ;; = simple erc audio notification =
  1149. ;; http://www.emacswiki.org/emacs/ErcSound
  1150. ;; (add-hook 'erc-insert-post-hook
  1151. ;; (lambda () (goto-char (point-min))
  1152. ;; (when (re-search-forward
  1153. ;; (regexp-quote (erc-current-nick)) nil t) (ding))))
  1154. ;; = fancy erc audio notification =
  1155. ;; http://www.emacswiki.org/emacs/ErcSound
  1156. ;;;;;;;;; commented out this while having sound problems.
  1157. ;; (add-hook 'erc-text-matched-hook
  1158. ;; (lambda (match-type nickuserhost message)
  1159. ;; (cond
  1160. ;; ((eq match-type 'current-nick)
  1161. ;; (play-sound-file "~/sounds/digit.wav"))
  1162. ;; ((eq match-type 'keyword)
  1163. ;; (play-sound-file "~/sounds/ting.wav")))))
  1164. ;; this should wrap chat the way you like.
  1165. (add-hook 'erc-mode-hook 'visual-line-mode)
  1166. ;; this should nicks more distinct. nick colours nick faces auto
  1167. ;;(load-file "~/.emacs.d/.ercnickcolorsdigitstyle")
  1168. ;;(load-file "~/.emacs.d/.ercnickcolorsdigitstyle1") ;;shudnt need to load if i load all .emacs.d ... do i do that? :3
  1169. ;; cont nick colors... "if u run one emacs daemon to rule them all (including both terminal and X clients): "
  1170. (add-hook 'after-make-frame-functions '(lambda (frame) (erc-set-colors-list)))
  1171. ;; n2o4's typing break tip
  1172. (setq type-break-demo-boring-stats t
  1173. type-break-terse-messages t
  1174. type-break-demo-functions '(type-break-demo-boring)
  1175. type-break-mode-line-message-mode t
  1176. type-break-query-mode t)
  1177. ;;
  1178. ;; thnx YoungFrog for hand holding, getting bug 16737 workaround
  1179. (setq x-select-enable-primary nil
  1180. x-select-enable-clipboard nil
  1181. save-interprogram-paste-before-kill nil)
  1182. ;;thnx csed for helping my windows get smaller
  1183. (setq window-min-height 1)
  1184. ;; do a (setq mode-line-format nil) for no mode-line
  1185. ;; you'll want to reimplement this, once addapted with your own bell audio file, rather than system beep (which is annoying).
  1186. ;; got from that video, where batman got it from http://stackoverflow.com/questions/11679700/emacs-disable-beep-when-trying-to-move-beyond-the-end-of-the-document
  1187. ;; if i typed it correctly. lol.
  1188. ;;(defun my-bell-function ())
  1189. ;;(setq ring-bell-function 'my-bell-function)
  1190. ;;(setq visible-bell nil)
  1191. ;; A predicate for suppressing the bell at night
  1192. ;;https://www.emacswiki.org/emacs/AlarmBell#toc9
  1193. (defvar night-start 19
  1194. "The hour that people go to sleep.")
  1195. (defvar night-end 11
  1196. "The hour that people wake up.")
  1197. (defun nightp ()
  1198. "Check if it is night."
  1199. (let ((hr (nth 2 (decode-time (current-time)))))
  1200. (unless (< hr night-end) (> hr night-start))))
  1201. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1202. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1203. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1204. ;; testing
  1205. ;;defaliasing some commands yo...
  1206. ;; no wait, how do i do this? i fell asleep midway to finding out
  1207. ;;(defalias f erc-add-fool "add fool to the list")
  1208. ;; end of testing
  1209. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1210. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1211. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1212. ;;;;;;;;;;;;;;;;
  1213. ;;;;;;;;;;;;;;;;
  1214. ;;;;;;;;;;;;;;;;
  1215. ;; ibuffer stuff
  1216. ;; built with help from http://martinowen.net/blog/2010/02/03/tips-for-emacs-ibuffer.html
  1217. ;; and with overwhelming confusion from https://www.emacswiki.org/emacs/IbufferMode
  1218. ;;anti-freeze
  1219. (global-unset-key (kbd "C-z"))
  1220. ;;might want this one on, might not...
  1221. (global-set-key (kbd "C-x C-b") 'ibuffer) ;; Use Ibuffer for Buffer List
  1222. (setq ibuffer-saved-filter-groups
  1223. '(("home"
  1224. ("emacs-config" (or (filename . ".emacs.d")
  1225. (filename . ".emacs")))
  1226. ("Org" (or (mode . org-mode)
  1227. (filename . "OrgMode")))
  1228. ("fish" (mode . fish-mode))
  1229. ("Haskell" (mode . haskell-mode))
  1230. ("ERC" (mode . erc-mode))
  1231. ("fyelz" (filename . ".fyelz"))
  1232. ("Help" (or (name . "\*Help\*")
  1233. (name . "\*Apropos\*")
  1234. (name . "\*info\*"))))))
  1235. ;;went wrong?! (fmakunbound 'ibuffer-saved-filter-groups)(setq debug-on-error t)
  1236. (add-hook 'ibuffer-mode-hook
  1237. '(lambda ()
  1238. (ibuffer-switch-to-saved-filter-groups "home")))
  1239. ;; less noisey clutter of empty groups
  1240. (setq ibuffer-show-empty-filter-groups nil)
  1241. ;; auto update ibuffer
  1242. (add-hook 'ibuffer-mode-hook
  1243. '(lambda ()
  1244. (ibuffer-auto-mode 1)
  1245. (ibuffer-switch-to-saved-filter-groups "home")))
  1246. ;;;;;;;;;;;;;;;;
  1247. ;;;;;;;;;;;;;;;;
  1248. ;;;;;;;;;;;;;;;;
  1249. ;; and meddling the background... in hunt of a 1 colour for gui, 1 for tui
  1250. (defun on-after-init ()
  1251. (unless (display-graphic-p (selected-frame))
  1252. (set-face-background 'default "unspecified-bg" (selected-frame))))
  1253. (add-hook 'window-setup-hook 'on-after-init)
  1254. ;; backup of default font face background colour, before making it black again, to be compatible with my terminals.
  1255. ;; '(default ((t (:inherit nil :stipple nil :background "#221321" :foreground "#ffbb55" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 146 :width normal :foundry "PfEd" :family "merg"))))
  1256. (custom-set-faces
  1257. ;; custom-set-faces was added by Custom.
  1258. ;; If you edit it by hand, you could mess it up, so be careful.
  1259. ;; Your init file should contain only one such instance.
  1260. ;; If there is more than one, they won't work right.
  1261. '(default ((t (:inherit nil :stipple nil :background "#30192d" :foreground "#ffbb55" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 116 :width normal :foundry "PfEd" :family "merg"))))
  1262. '(custom-button ((t (:background "#332233" :foreground "#ffddaa" :box (:line-width 2 :style released-button)))))
  1263. '(custom-button-mouse ((t (:background "#996633" :foreground "#ffcc00" :box (:line-width 2 :style released-button)))))
  1264. '(custom-button-pressed ((t (:background "#fc0" :foreground "#963" :box (:line-width 2 :style pressed-button)))))
  1265. '(erc-action-face ((t nil)))
  1266. '(erc-button ((t (:underline "#cba"))))
  1267. '(erc-command-indicator-face ((t (:underline "#119999"))))
  1268. '(erc-current-nick-face ((t (:background "#420" :foreground "#cbd"))) nil "#cbd #420 dont change it trying to please the eye")
  1269. '(erc-default-face ((t (:foreground "#CFA259"))))
  1270. '(erc-fool-face ((t (:foreground "#666e6b"))))
  1271. '(erc-header-line ((t (:foreground "#EEC055"))))
  1272. '(erc-input-face ((t (:foreground "#a73"))))
  1273. '(erc-keyword-face ((t (:foreground "pale green"))))
  1274. '(erc-keyword-plait-face ((t (:background "#029" :foreground "#f0f" :family "pen"))))
  1275. '(erc-my-nick-face ((t (:foreground "brown"))))
  1276. '(erc-my-nick-prefix-face ((t (:inherit erc-nick-default-face))))
  1277. '(erc-nick-default-face ((t (:underline "#654"))))
  1278. '(erc-nick-msg-face ((t (:foreground "IndianRed"))))
  1279. '(erc-nick-prefix-face ((t (:inherit erc-nick-default-face))))
  1280. '(erc-notice-face ((t (:foreground "#86c"))))
  1281. '(erc-pal-face ((t (:background "#552233"))))
  1282. '(erc-prompt-face ((t (:background "#426" :foreground "#b85"))))
  1283. '(erc-timestamp-face ((t (:foreground "#988262" :family "referal"))))
  1284. '(error ((t (:foreground "Green"))))
  1285. '(header-line ((t (:inherit mode-line :background "#3a281d" :foreground "#FFC27B" :box nil :overline "#352025"))))
  1286. '(highlight ((t (:background "#080"))))
  1287. '(linum ((t (:inherit (shadow default) :background "#060402" :foreground "#FFFFFF"))))
  1288. '(mode-line ((t (:background "#60492f" :foreground "#ffdda5" :overline "#bb9977"))))
  1289. '(mode-line-buffer-id ((t nil)))
  1290. '(mode-line-emphasis ((t (:underline "#fff"))))
  1291. '(mode-line-highlight ((t (:background "#554433" :box (:line-width -1 :color "#853") :overline "#ff6600" :weight light))))
  1292. '(mode-line-inactive ((t (:inherit mode-line :background "#332233" :foreground "#a09080" :box (:line-width -1 :color "#302030") :overline "#809" :weight light))))
  1293. '(org-level-1 ((t (:inherit nil :foreground "#7c0"))))
  1294. '(org-level-2 ((t (:foreground "#bb0"))))
  1295. '(org-level-3 ((t (:foreground "#9a7e55"))))
  1296. '(org-level-4 ((t (:foreground "#a54"))))
  1297. '(org-level-5 ((t (:foreground "#772f70"))))
  1298. '(org-level-6 ((t (:foreground "#538"))))
  1299. '(org-level-7 ((t (:foreground "#358"))))
  1300. '(org-level-8 ((t (:foreground "#385"))))
  1301. '(rainbow-delimiters-depth-1-face ((t (:foreground "#aee"))))
  1302. '(rainbow-delimiters-depth-2-face ((t (:foreground "#fff"))))
  1303. '(rainbow-delimiters-depth-3-face ((t (:foreground "#ffde00"))))
  1304. '(rainbow-delimiters-depth-4-face ((t (:foreground "#ff8d00"))))
  1305. '(rainbow-delimiters-depth-5-face ((t (:foreground "#d36"))))
  1306. '(rainbow-delimiters-depth-6-face ((t (:foreground "#a1c"))))
  1307. '(rainbow-delimiters-depth-7-face ((t (:foreground "#75b"))))
  1308. '(rainbow-delimiters-depth-8-face ((t (:foreground "#88d"))))
  1309. '(rainbow-delimiters-depth-9-face ((t (:foreground "#8bf"))))
  1310. '(rainbow-delimiters-unmatched-face ((t (:foreground "#00ff00"))))
  1311. '(region ((t (:background "#302730"))))
  1312. ;; '(sauron-header-face ((t (:foreground "#6a4c38" :overline "black"))))
  1313. '(scroll-bar ((t (:background "#321" :foreground "#963"))))
  1314. '(stripe-highlight ((t (:background "#191517"))))
  1315. '(tooltip ((t (:inherit variable-pitch :background "#3f2d2e" :foreground "#EEC055" :height 59))))
  1316. '(variable-pitch ((t (:family "nztt")))))