-
Notifications
You must be signed in to change notification settings - Fork 12
/
init.el
1609 lines (1381 loc) · 35.6 KB
/
init.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
;;; -*- lexical-binding: t; -*-
(require 'package)
(customize-set-variable 'package-archives
`(("melpa" . "https://melpa.org/packages/")
,@package-archives))
(customize-set-variable 'package-enable-at-startup nil)
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-when-compile
(require 'use-package))
(put 'use-package 'lisp-indent-function 1)
(use-package use-package-core
:custom
;; (use-package-verbose t)
;; (use-package-minimum-reported-time 0.005)
(use-package-enable-imenu-support t))
(use-package gcmh
:ensure t
:demand t
:config
(gcmh-mode 1))
(use-package system-packages
:ensure t
:custom
(system-packages-noconfirm t))
(use-package use-package-ensure-system-package :ensure t)
(use-package quelpa
:ensure t
:defer t
:custom
(quelpa-update-melpa-p nil "Don't update the MELPA git repo."))
(use-package quelpa-use-package
:ensure t)
(use-package fnhh
:quelpa
(fnhh :repo "a13/fnhh" :fetcher github)
:config
(fnhh-mode 1))
(use-package use-package-custom-update
:quelpa
(use-package-custom-update
:repo "a13/use-package-custom-update"
:fetcher github
:version original))
(use-package try
:ensure t
:defer t)
(use-package paradox
:ensure t
:defer 1
:config
(paradox-enable))
(use-package emacs
:load-path "secrets"
:init
(put 'narrow-to-region 'disabled nil)
(put 'downcase-region 'disabled nil)
(fset 'x-popup-menu #'ignore)
:custom
(frame-resize-pixelwise t)
(default-frame-alist '((menu-bar-lines 0)
(tool-bar-lines 0)
(vertical-scroll-bars)))
(scroll-step 1)
(inhibit-startup-screen t "Don't show splash screen")
(use-dialog-box nil "Disable dialog boxes")
(x-gtk-use-system-tooltips nil)
(use-file-dialog nil)
(enable-recursive-minibuffers t "Allow minibuffer commands in the minibuffer")
(indent-tabs-mode nil "Spaces!")
(tab-width 4)
(debug-on-quit nil)
:config
;; Terminal emacs doesn't have it
(when (fboundp 'set-fontset-font)
;; a workaround for old charsets
(set-fontset-font "fontset-default" 'cyrillic
(font-spec :registry "iso10646-1" :script 'cyrillic))
;; TODO: is it possible to not hardcode fonts?
(set-fontset-font t 'symbol
(font-spec :family
(if (eq system-type 'darwin)
"Apple Color Emoji"
"Symbola"))
nil 'prepend)))
(use-package frame
:bind
("C-z" . nil)
:custom
(initial-frame-alist '((vertical-scroll-bars))))
(use-package delsel
:bind
(:map mode-specific-map
("C-g" . minibuffer-keyboard-quit)))
(use-package simple
:defer 0.1
:custom
(kill-ring-max 30000)
(column-number-mode 1)
:config
(toggle-truncate-lines 1)
:bind
;; remap ctrl-w/ctrl-h
(("C-w" . backward-kill-word)
("C-h" . delete-backward-char)
:map ctl-x-map
("C-k" . kill-region)
("K" . kill-current-buffer)))
(use-package help
:defer t
:bind
(("C-?" . help-command)
:map mode-specific-map
("h" . help-command)))
(use-package ibuffer
:bind
([remap list-buffers] . ibuffer))
(use-package files
:hook
(before-save . delete-trailing-whitespace)
:custom
(require-final-newline t)
;; backup settings
(backup-by-copying t)
(backup-directory-alist
`((".*" . ,(locate-user-emacs-file "backups"))))
(delete-old-versions t)
(kept-new-versions 6)
(kept-old-versions 2)
(version-control t))
(use-package autorevert
:defer 0.1)
(use-package recentf
:defer 0.1
:custom
(recentf-auto-cleanup 30)
:config
(recentf-mode)
(run-with-idle-timer 30 t 'recentf-save-list))
(use-package iqa
:ensure t
:custom
(iqa-user-init-file (locate-user-emacs-file "README.org")
"Edit README.org by default.")
:config
(iqa-setup-default))
(use-package cus-edit
:defer t
:custom
;; (custom-file (make-temp-file "emacs-custom") "Store customizations in a temp file")
(custom-file null-device "Don't store customizations"))
(use-package vlf
:defer t
:ensure t
:after (ivy counsel)
:init
(ivy-add-actions 'counsel-find-file '(("l" vlf "view large file"))))
(use-package epa
:defer t
:custom
(epg-gpg-program "gpg")
(epa-pinentry-mode nil))
(use-package uniquify
:defer 0.1
:custom
(uniquify-buffer-name-style 'forward))
(use-package tramp
:defer t
:config
(put 'temporary-file-directory 'standard-value `(,temporary-file-directory))
:custom
(tramp-backup-directory-alist backup-directory-alist)
(tramp-default-method "ssh")
(tramp-default-proxies-alist nil))
(use-package sudo-edit
:ensure t
:config (sudo-edit-indicator-mode)
:bind (:map ctl-x-map
("M-s" . sudo-edit)))
(use-package exec-path-from-shell
:ensure t
:defer 0.1
:config
(exec-path-from-shell-initialize))
(use-package xr
:ensure t
:defer t)
(use-package em-smart
:defer t
:config
(eshell-smart-initialize)
:custom
(eshell-where-to-jump 'begin)
(eshell-review-quick-commands nil)
(eshell-smart-space-goes-to-end t))
(use-package esh-help
:ensure t
:defer t
:config
(setup-esh-help-eldoc))
(use-package esh-autosuggest
:ensure t
:hook (eshell-mode . esh-autosuggest-mode))
(use-package esh-module
:defer t
:custom-update
(eshell-modules-list '(eshell-tramp)))
(use-package eshell-prompt-extras
:ensure t
:after (eshell esh-opt)
:custom
(eshell-prompt-function #'epe-theme-dakrone))
(use-package eshell-toggle
:ensure t
:after projectile
:custom
(eshell-toggle-use-projectile-root t)
(eshell-toggle-run-command nil)
:bind
("M-`" . eshell-toggle))
;; (use-package eshell-fringe-status
;; :ensure t
;; :hook
;; (eshell-mode . eshell-fringe-status-mode))
(use-package ls-lisp
:defer t
:custom
(ls-lisp-emulation 'MS-Windows)
(ls-lisp-ignore-case t)
(ls-lisp-verbosity nil))
(use-package dired
:custom (dired-dwim-target t "guess a target directory")
:hook
(dired-mode . dired-hide-details-mode))
(use-package dired-x
:bind
([remap list-directory] . dired-jump)
:custom
;; do not bind C-x C-j since it's used by jabber.el
(dired-bind-jump nil))
(use-package dired-toggle
:ensure t
:defer t)
(use-package dired-hide-dotfiles
:ensure t
:bind
(:map dired-mode-map
("." . dired-hide-dotfiles-mode))
:hook
(dired-mode . dired-hide-dotfiles-mode))
(use-package diredfl
:ensure t
:hook
(dired-mode . diredfl-mode))
(use-package async
:ensure t
:defer t
:custom
(dired-async-mode 1))
(use-package dired-rsync
:ensure t
:bind
(:map dired-mode-map
("r" . dired-rsync)))
(use-package dired-launch
:ensure t
:hook
(dired-mode . dired-launch-mode))
(use-package dired-git-info
:ensure t
:bind
(:map dired-mode-map
(")" . dired-git-info-mode)))
(use-package dired-recent
:ensure t
:bind
(:map
dired-recent-mode-map ("C-x C-d" . nil))
:config
(dired-recent-mode 1))
(use-package mule
:defer 0.1
:config
(prefer-coding-system 'utf-8)
(set-language-environment "UTF-8")
(set-terminal-coding-system 'utf-8))
(use-package ispell
:defer t
:custom
(ispell-local-dictionary-alist
'(("russian"
"[АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯабвгдеёжзийклмнопрстуфхцчшщьыъэюяіїєґ’A-Za-z]"
"[^АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЫЪЭЮЯабвгдеёжзийклмнопрстуфхцчшщьыъэюяіїєґ’A-Za-z]"
"[-']" nil ("-d" "uk_UA,ru_RU,en_US") nil utf-8)))
(ispell-program-name "hunspell")
(ispell-dictionary "russian")
(ispell-really-aspell nil)
(ispell-really-hunspell t)
(ispell-encoding8-command t)
(ispell-silently-savep t))
(use-package flyspell
:defer t
:custom
(flyspell-delay 1))
(use-package flyspell-correct-ivy
:ensure t
:bind (:map flyspell-mode-map
("C-c $" . flyspell-correct-at-point)))
(use-package faces
:custom
(face-font-family-alternatives
'(("Monospace" "courier" "fixed")
("Consolas" "Monaco" "Roboto Mono" "PT Mono" "Terminus" "Monospace")
("Monospace Serif" "CMU Typewriter Text" "Courier 10 Pitch" "Monospace")
("Serif" "Alegreya" "CMU Serif" "Georgia" "Cambria" "Times New Roman" "DejaVu Serif" "serif")))
:custom-face
(variable-pitch ((t (:family "Serif" :height 135))))
(fixed-pitch ((t (:family "Monospace Serif" :height 125))))
(default ((t (:family "Monospace Serif" :height 125)))))
(use-package font-lock
:defer t
:custom-face
(font-lock-comment-face ((t (:inherit font-lock-comment-face :italic t))))
(font-lock-doc-face ((t (:inherit font-lock-doc-face :italic t))))
(font-lock-string-face ((t (:inherit font-lock-string-face :italic t)))))
(use-package open-color
:quelpa
(open-color :repo "a13/open-color.el" :fetcher github :version original))
(use-package lor-oc-theme
:config
(load-theme 'lor-oc t)
:load-path "/home/dk/git/lor-theme"
;; :quelpa
;; (lor-theme :repo "a13/lor-theme" :fetcher github :version original)
)
(use-package mwheel
:custom
(mouse-wheel-scroll-amount '(1
((shift) . 5)
((control))))
(mouse-wheel-progressive-speed nil))
(use-package pixel-scroll
:config
(pixel-scroll-mode))
(use-package tooltip
:defer t
:custom
(tooltip-mode -1))
(use-package time
:defer t
:custom
(display-time-default-load-average nil)
(display-time-24hr-format t)
(display-time-mode t))
(use-package fancy-battery
:ensure t
:hook
(after-init . fancy-battery-mode))
(use-package olivetti
:defer t
:ensure t
:custom
(olivetti-body-width 95))
(use-package font-lock+
:defer t
:quelpa
(font-lock+ :repo "emacsmirror/font-lock-plus" :fetcher github))
(use-package all-the-icons
:ensure t
:defer t
:config
(setq all-the-icons-mode-icon-alist
`(,@all-the-icons-mode-icon-alist
(package-menu-mode all-the-icons-octicon "package" :v-adjust 0.0)
(jabber-chat-mode all-the-icons-material "chat" :v-adjust 0.0)
(jabber-roster-mode all-the-icons-material "contacts" :v-adjust 0.0)
(telega-chat-mode all-the-icons-fileicon "telegram" :v-adjust 0.0
:face all-the-icons-blue-alt)
(telega-root-mode all-the-icons-material "contacts" :v-adjust 0.0))))
(use-package all-the-icons-dired
:ensure t
:hook
(dired-mode . all-the-icons-dired-mode))
(use-package all-the-icons-ivy
:defer t
:ensure t
:after ivy
:custom
(all-the-icons-ivy-buffer-commands '() "Don't use for buffers.")
:config
(all-the-icons-ivy-setup))
(use-package mood-line
:ensure t
:custom-face
(mode-line ((t (:inherit default (:box (:line-width -1 :style released-button))))))
:hook
(after-init . mood-line-mode))
(use-package winner
:config
(winner-mode 1))
(use-package paren
:config
(show-paren-mode t))
(use-package hl-line
:hook
(prog-mode . hl-line-mode))
(use-package highlight-numbers
:ensure t
:hook
(prog-mode . highlight-numbers-mode))
(use-package highlight-escape-sequences
:ensure t
:config (hes-mode))
(use-package hl-todo
:ensure t
:custom-face
(hl-todo ((t (:inherit hl-todo :italic t))))
:hook ((prog-mode . hl-todo-mode)
(yaml-mode . hl-todo-mode)))
(use-package page-break-lines
:ensure t
:hook
(help-mode . page-break-lines-mode)
(prog-mode . page-break-lines-mode)
(special-mode . page-break-lines-mode)
(compilation-mode . page-break-lines-mode))
(use-package rainbow-delimiters
:ensure t
:hook
(prog-mode . rainbow-delimiters-mode))
(use-package rainbow-identifiers
:ensure t
:custom
(rainbow-identifiers-cie-l*a*b*-lightness 80)
(rainbow-identifiers-cie-l*a*b*-saturation 50)
;; (rainbow-identifiers-choose-face-function
;; #'rainbow-identifiers-cie-l*a*b*-choose-face)
:hook
(emacs-lisp-mode . rainbow-identifiers-mode) ; actually, turn it off
(prog-mode . rainbow-identifiers-mode))
(use-package rainbow-mode
:ensure t
:hook '(prog-mode help-mode))
(use-package so-long
:quelpa (so-long :url "https://raw.githubusercontent.com/emacs-mirror/emacs/master/lisp/so-long.el" :fetcher url)
:config (global-so-long-mode))
;; counsel-M-x can use this one
(use-package amx :ensure t :defer t)
(use-package ivy
:ensure t
:custom
;; (ivy-re-builders-alist '((t . ivy--regex-fuzzy)))
(ivy-count-format "%d/%d " "Show anzu-like counter")
(ivy-use-selectable-prompt t "Make the prompt line selectable")
:custom-face
(ivy-current-match ((t (:inherit 'hl-line))))
:bind
(:map mode-specific-map
("C-r" . ivy-resume))
:config
(ivy-mode t))
(use-package ivy-xref
:ensure t
:defer t
:custom
(xref-show-xrefs-function #'ivy-xref-show-xrefs "Use Ivy to show xrefs"))
(use-package counsel
:ensure t
:bind
(([remap menu-bar-open] . counsel-tmm)
([remap insert-char] . counsel-unicode-char)
([remap isearch-forward] . counsel-grep-or-swiper)
:map mode-specific-map
:prefix-map counsel-prefix-map
:prefix "c"
("a" . counsel-apropos)
("b" . counsel-bookmark)
("B" . counsel-bookmarked-directory)
("c w" . counsel-colors-web)
("c e" . counsel-colors-emacs)
("d" . counsel-dired-jump)
("f" . counsel-file-jump)
("F" . counsel-faces)
("g" . counsel-org-goto)
("h" . counsel-command-history)
("H" . counsel-minibuffer-history)
("i" . counsel-imenu)
("j" . counsel-find-symbol)
("l" . counsel-locate)
("L" . counsel-find-library)
("m" . counsel-mark-ring)
("o" . counsel-outline)
("O" . counsel-find-file-extern)
("p" . counsel-package)
("r" . counsel-recentf)
("s g" . counsel-grep)
("s r" . counsel-rg)
("s s" . counsel-ag)
("t" . counsel-org-tag)
("v" . counsel-set-variable)
("w" . counsel-wmctrl)
:map help-map
("F" . counsel-describe-face))
:custom
(counsel-grep-base-command
"rg -i -M 120 --no-heading --line-number --color never %s %s")
(counsel-search-engines-alist
'((google
"http://suggestqueries.google.com/complete/search"
"https://www.google.com/search?q="
counsel--search-request-data-google)
(ddg
"https://duckduckgo.com/ac/"
"https://duckduckgo.com/html/?q="
counsel--search-request-data-ddg)))
:init
(counsel-mode))
(use-package swiper :ensure t)
(use-package counsel-web
:defer t
:quelpa
(counsel-web :repo "mnewt/counsel-web" :fetcher github))
(use-package counsel-world-clock
:ensure t
:after counsel
:bind
(:map counsel-prefix-map
("C" . counsel-world-clock)))
(use-package ivy-rich
:ensure t
:config
(ivy-rich-project-root-cache-mode t)
(ivy-rich-mode 1))
(use-package helm-make
:defer t
:ensure t
:custom (helm-make-completion-method 'ivy))
(use-package isearch
:bind
;; TODO: maybe get a keybinding from global map
(:map isearch-mode-map
("C-h" . isearch-delete-char)))
(use-package char-fold
:defer 0.2
:custom
(char-fold-symmetric t)
(search-default-mode #'char-fold-to-regexp)
:quelpa (char-fold :url "https://raw.githubusercontent.com/emacs-mirror/emacs/master/lisp/char-fold.el"
:fetcher url))
(use-package mb-depth
:config
(minibuffer-depth-indicate-mode 1))
(use-package avy
:ensure t
:bind
(("C-:" . avy-goto-char-timer)
("C-." . avy-goto-word-1)
:map goto-map
("M-g" . avy-goto-line)
:map search-map
("M-s" . avy-goto-word-1)))
(use-package ivy-avy
:after (ivy avy)
:ensure t)
(use-package avy-zap
:defer t
:ensure t
:bind
([remap zap-to-char] . avy-zap-to-char))
(use-package ace-jump-buffer
:ensure t
:bind
(:map goto-map
("b" . ace-jump-buffer)))
(use-package ace-window
:ensure t
:custom
(aw-keys '(?a ?s ?d ?f ?g ?h ?j ?k ?l) "Use home row for selecting.")
(aw-scope 'frame "Highlight only current frame.")
:bind
("M-o" . ace-window))
(use-package link-hint
:ensure t
:bind
(("<XF86Search>" . link-hint-open-link)
("S-<XF86Search>" . link-hint-copy-link)
:map mode-specific-map
:prefix-map link-hint-keymap
:prefix "l"
("o" . link-hint-open-link)
("c" . link-hint-copy-link)))
(use-package ace-link
:ensure t
:after link-hint ; to use prefix keymap
:bind
(:map link-hint-keymap
("l" . counsel-ace-link))
:config
(ace-link-setup-default))
(use-package select
:custom
(selection-coding-system 'utf-8)
(select-enable-clipboard t "Use the clipboard"))
(use-package expand-region
:ensure t
:bind
(("C-=" . er/expand-region)
("C-+" . er/contract-region)
:map mode-specific-map
:prefix-map region-prefix-map
:prefix "r"
("(" . er/mark-inside-pairs)
(")" . er/mark-outside-pairs)
("'" . er/mark-inside-quotes)
([34] . er/mark-outside-quotes) ; it's just a quotation mark
("o" . er/mark-org-parent)
("u" . er/mark-url)
("b" . er/mark-org-code-block)
("." . er/mark-method-call)
(">" . er/mark-next-accessor)
("w" . er/mark-word)
("d" . er/mark-defun)
("e" . er/mark-email)
("," . er/mark-symbol)
("<" . er/mark-symbol-with-prefix)
(";" . er/mark-comment)
("s" . er/mark-sentence)
("S" . er/mark-text-sentence)
("p" . er/mark-paragraph)
("P" . er/mark-text-paragraph)))
(use-package elec-pair
:config
(electric-pair-mode))
(use-package edit-indirect
:ensure t
:after expand-region ; to use region-prefix-map
:bind
(:map region-prefix-map
("r" . edit-indirect-region)))
(use-package clipmon
:ensure t
:defer 0.1
:config
(clipmon-mode))
(use-package copy-as-format
:ensure t
:custom
(copy-as-format-default "slack" "or Telegram")
:bind
(:map mode-specific-map
:prefix-map copy-as-format-prefix-map
:prefix "f"
("f" . copy-as-format)
("a" . copy-as-format-asciidoc)
("b" . copy-as-format-bitbucket)
("d" . copy-as-format-disqus)
("g" . copy-as-format-github)
("l" . copy-as-format-gitlab)
("c" . copy-as-format-hipchat)
("h" . copy-as-format-html)
("j" . copy-as-format-jira)
("m" . copy-as-format-markdown)
("w" . copy-as-format-mediawiki)
("o" . copy-as-format-org-mode)
("p" . copy-as-format-pod)
("r" . copy-as-format-rst)
("s" . copy-as-format-slack)))
(use-package hungry-delete
:ensure t
:hook
(text-mode . hungry-delete-mode)
(prog-mode . hungry-delete-mode))
(use-package man
:defer t
:custom
(Man-notify-method 'pushy "show manpage HERE")
:custom-face
(Man-overstrike ((t (:inherit font-lock-type-face :bold t))))
(Man-underline ((t (:inherit font-lock-keyword-face :underline t)))))
(use-package woman
:defer t
:custom-face
(woman-bold ((t (:inherit font-lock-type-face :bold t))))
(woman-italic ((t (:inherit font-lock-keyword-face :underline t)))))
(use-package info-colors
:ensure t
:hook
(Info-selection #'info-colors-fontify-node))
(use-package keyfreq
:defer 0.1
:ensure t
:config
(keyfreq-mode 1)
(keyfreq-autosave-mode 1))
(use-package which-key
:ensure t
:custom
(which-key-show-transient-maps t)
:config
(which-key-mode))
(use-package free-keys
:ensure t
:defer t
:commands free-keys)
(use-package helpful
:ensure t
:defer t)
;; (use-package jabber
;; :defer t
;; :config
;; (setq jabber-history-enabled t
;; jabber-use-global-history nil
;; fsm-debug nil)
;; :custom
;; (jabber-auto-reconnect t)
;; (jabber-chat-buffer-format "*-jc-%n-*")
;; (jabber-groupchat-buffer-format "*-jg-%n-*")
;; (jabber-chat-foreign-prompt-format "▼ [%t] %n> ")
;; (jabber-chat-local-prompt-format "▲ [%t] %n> ")
;; (jabber-muc-colorize-foreign t)
;; (jabber-muc-private-buffer-format "*-jmuc-priv-%g-%n-*")
;; (jabber-rare-time-format "%e %b %Y %H:00")
;; (jabber-resource-line-format " %r - %s [%p]")
;; (jabber-roster-buffer "*-jroster-*")
;; (jabber-roster-line-format "%c %-17n")
;; (jabber-roster-show-bindings nil)
;; (jabber-roster-show-title nil)
;; (jabber-roster-sort-functions (quote (jabber-roster-sort-by-status jabber-roster-sort-by-displayname jabber-roster-sort-by-group)))
;; (jabber-show-offline-contacts nil)
;; (jabber-show-resources nil))
;; (use-package jabber-otr
;; :ensure t
;; :defer t)
;; (use-package secrets-jabber
;; :defer t
;; :load t
;; :after jabber)
;; (use-package point-im
;; :defer t
;; :defines point-im-reply-id-add-plus
;; :after jabber
;; :quelpa
;; (point-im :repo "a13/point-im.el" :fetcher github :version original)
;; :custom
;; (point-im-reply-id-add-plus nil)
;; :hook
;; (jabber-chat-mode . point-im-mode))
(use-package slack
:ensure t
:defer t
:commands (slack-start)
:custom
(slack-buffer-emojify t "enable emoji")
(slack-prefer-current-team t))
;; (use-package secrets-slack
;; :load t
;; :after slack)
;; TODO: move somewhere
(use-package alert
:defer t
:ensure t
:commands (alert)
:custom
(alert-default-style 'libnotify))
(use-package shr
:defer t
:custom
(shr-use-fonts nil))
(use-package shr-color
:defer t
:custom
(shr-color-visible-luminance-min 80 "Improve the contrast"))
(use-package eww
:defer t
:custom
(eww-search-prefix "https://duckduckgo.com/html/?kd=-1&q="))
(use-package browse-url
:bind
([f5] . browse-url))
(use-package bruh
:defer t
:after browse-url
:quelpa
(bruh :repo "a13/bruh" :fetcher github)
:custom-update
(bruh-images-re
'("^https?://img-fotki\\.yandex\\.ru/get/"
"^https?://pics\\.livejournal\\.com/.*/pic/"
"^https?://l-userpic\\.livejournal\\.com/"
"^https?://img\\.leprosorium\\.com/[0-9]+$"))
:custom
(browse-url-browser-function #'bruh-browse-url)
(bruh-default-browser #'bruh-chromium-new-app)
(bruh-videos-browser-function #'bruh-mpv))
(use-package webjump
:bind
(([S-f5] . webjump))
:config
(setq webjump-sites
(append '(("debian packages" .
[simple-query "packages.debian.org" "http://packages.debian.org/" ""]))
webjump-sample-sites)))
(use-package atomic-chrome
:defer 0.3
:ensure t
:custom
(atomic-chrome-url-major-mode-alist
'(("reddit\\.com" . markdown-mode)
("github\\.com" . gfm-mode)
("redmine" . textile-mode))
"Major modes for URLs.")
:config
(atomic-chrome-start-server))
(use-package shr-tag-pre-highlight
:ensure t
;;:defer t
:after shr
:custom-update
(shr-external-rendering-functions
'((pre . shr-tag-pre-highlight))))
(use-package google-this
:defer 0.1
:ensure t
:bind
(:map mode-specific-map
("g" . #'google-this-mode-submap)))
(use-package multitran
:ensure t
:defer t)
(use-package imgbb
:ensure t
:defer t)
(use-package calendar
:defer t
:custom
(calendar-week-start-day 1))
(use-package org
:defer t
;; to be sure we have the latest Org version
;; :ensure org-plus-contrib
:hook
(org-mode . variable-pitch-mode)
(org-mode . visual-line-mode)
:custom
(org-adapt-indentation t)
(org-src-tab-acts-natively t))
;; (use-package org-passwords
;; :ensure org-plus-contrib
;; :bind
;; (:map org-mode-map
;; ("C-c C-p p" . org-passwords-copy-password)
;; ("C-c C-p u" . org-passwords-copy-username)
;; ("C-c C-p o" . org-passwords-open-url)))
(use-package org-bullets
:ensure t
:custom
;; org-bullets-bullet-list
;; default: "◉ ○ ✸ ✿"
;; large: ♥ ● ◇ ✚ ✜ ☯ ◆ ♠ ♣ ♦ ☢ ❀ ◆ ◖ ▶
;; Small: ► • ★ ▸
(org-bullets-bullet-list '("•"))