.dotfiles

Check-in [aa71d5d893]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:straight.el introduction
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: aa71d5d89334665bc5f000acf5f6eab9962154a4d0410dd669ab8e7a3706c22a
User & Date: Cthulhux 2020-05-25 20:20:24
Context
2020-05-26
07:05
Emacs: Removed the last references to package.el, improved documentation. check-in: b95d4bb062 user: Cthulhux tags: trunk
2020-05-25
20:20
straight.el introduction check-in: aa71d5d893 user: Cthulhux tags: trunk
2020-05-18
13:10
Emacs: added web-mode check-in: 98b1be1e28 user: Cthulhux tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to emacs/init.el.

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
...
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
...
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
...
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
...
402
403
404
405
406
407
408
409
410
411
412
413
414

415
416
417
418
419
420
421
422
423
(add-to-list 'package-archives
	     '("melpa" . "https://melpa.org/packages/") t)

;; Initialize MELPA packages:
(when (< emacs-major-version 27)
  (package-initialize))

(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))













(require 'use-package)


;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; BUILT-IN PACKAGES:
;;;;;;;;;;;;;;;;;;;;;;;;;;

;; Perl programming:
;; Use the C Perl mode (may be better than the default one).
(defalias 'perl-mode 'cperl-mode)

;; Gnus preparation: Make it faster and nicer looking.
;; (Let's keep the account configuration in .gnus.el though.)
(use-package gnus

  :config
  (setq gnus-always-read-dribble-file t)
  (setq gnus-read-active-file t)
  (gnus-add-configuration '(article (vertical 1.0 (summary .35 point) (article 1.0)))))

(use-package gnus-async

  :after gnus
  :config
  (setq gnus-asynchronous t)
  (setq gnus-use-article-prefetch 15))

;; org-mode improvements:
(use-package org

  :config
  ;; Better HTML export.
  (setq org-html-coding-system 'utf-8-unix)
  
  ;; Better inline code blocks.
  (setq org-src-fontify-natively t)
  (setq org-src-tab-acts-natively t))
................................................................................


;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; 3rd PARTY PACKAGES:
;;;;;;;;;;;;;;;;;;;;;;;;;;

;; Keep my packages up-to-date:

(use-package auto-package-update
  :ensure t
  :config
  (setq auto-package-update-interval 4) ;; ... days
  (setq auto-package-update-delete-old-versions t)
  (setq auto-package-update-hide-results t)
  (auto-package-update-maybe))

;; Some platforms (cough) don't update Emacs's path.
;; Make them.
(when (eq system-type 'darwin)
  (use-package exec-path-from-shell
    :ensure t
    :init
................................................................................
  (load-file "~/.emacs.d/elfeed-config.el"))

;; A less shitty modeline:
(use-package doom-modeline
  :ensure t
  :init (doom-modeline-mode 1))

;; A less shitty package manager:
(use-package paradox
  :ensure t
  :config
  (setq paradox-execute-asynchronously t)
  :init
  (paradox-enable))

;; Markdown support:
(use-package markdown-mode
  :ensure t
  :commands (markdown-mode gfm-mode)
  :mode (("README\\.md\\'" . gfm-mode)
         ("\\.md\\'" . markdown-mode)
         ("\\.markdown\\'" . markdown-mode))
................................................................................
  :after ivy
  :config (counsel-mode))

;; Ivy for most interactive stuff:
(use-package ivy
  :ensure t
  :defer 0.1
  :diminish
  :bind (("C-c C-r" . ivy-resume)
         ("C-x B" . ivy-switch-buffer-other-window))
  :custom
  (ivy-count-format "(%d/%d) ")
  (ivy-use-virtual-buffers t)
  (ivy-virtual-abbreviate (quote full))
  :config (ivy-mode))
................................................................................
  (ivy-rich-mode 1)
  (setcdr (assq t ivy-format-functions-alist) #'ivy-format-function-line))

;; With icons:
(use-package all-the-icons-ivy-rich
  :ensure t
  :after ivy-rich
  :init
  (all-the-icons-ivy-rich-mode t))

;; Swiper for searching:
(use-package swiper
  :ensure t
  :after ivy
  :bind (("C-s" . swiper)
................................................................................

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(canlock-password "5e5c6fd080d6c0bce2d09b8ec6e3693c1a63c654")
 '(ivy-count-format "(%d/%d) ")
 '(ivy-use-virtual-buffers t)
 '(ivy-virtual-abbreviate (quote full))
 '(package-selected-packages
   (quote
    (web-mode lsp-mode visual-regexp-steroids vc-fossil use-package smartparens sly semi paradox org2blog org-web-tools org-preview-html nofrils-acme-theme nadvice multiple-cursors mood-line lsp-ui gopher go-mode gh flycheck exec-path-from-shell elfeed-protocol elfeed-goodies doom-modeline darcsum counsel company-lsp circe auto-package-update async all-the-icons-ivy-rich all-the-icons-gnus all-the-icons-dired))))

(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

(provide 'init)
;;; init.el ends here







|
|
|
>
>
>
>
>
>
>
>
>
>
>

>
|













>






>







>







 







>
|
|
|
|
|
|
|







 







<
<
<
<
<
<
<
<







 







<







 







|







 







|
|
|
<
<
<
>









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
...
208
209
210
211
212
213
214








215
216
217
218
219
220
221
...
333
334
335
336
337
338
339

340
341
342
343
344
345
346
...
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
...
409
410
411
412
413
414
415
416
417
418



419
420
421
422
423
424
425
426
427
428
(add-to-list 'package-archives
	     '("melpa" . "https://melpa.org/packages/") t)

;; Initialize MELPA packages:
(when (< emacs-major-version 27)
  (package-initialize))

;; Initialize Straight.el:
(setq straight-use-package-by-default t)
(defvar bootstrap-version)
(let ((bootstrap-file
       (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
      (bootstrap-version 5))
  (unless (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
         "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
         'silent 'inhibit-cookies)
      (goto-char (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nomessage))

;; Initialize use-package:
(straight-use-package 'use-package)


;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; BUILT-IN PACKAGES:
;;;;;;;;;;;;;;;;;;;;;;;;;;

;; Perl programming:
;; Use the C Perl mode (may be better than the default one).
(defalias 'perl-mode 'cperl-mode)

;; Gnus preparation: Make it faster and nicer looking.
;; (Let's keep the account configuration in .gnus.el though.)
(use-package gnus
  :straight nil
  :config
  (setq gnus-always-read-dribble-file t)
  (setq gnus-read-active-file t)
  (gnus-add-configuration '(article (vertical 1.0 (summary .35 point) (article 1.0)))))

(use-package gnus-async
  :straight nil
  :after gnus
  :config
  (setq gnus-asynchronous t)
  (setq gnus-use-article-prefetch 15))

;; org-mode improvements:
(use-package org
  :straight nil
  :config
  ;; Better HTML export.
  (setq org-html-coding-system 'utf-8-unix)
  
  ;; Better inline code blocks.
  (setq org-src-fontify-natively t)
  (setq org-src-tab-acts-natively t))
................................................................................


;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; 3rd PARTY PACKAGES:
;;;;;;;;;;;;;;;;;;;;;;;;;;

;; Keep my packages up-to-date:
;; Commented out. straight.el will do that for a while.
;;(use-package auto-package-update
;;  :ensure t
;;  :config
;;  (setq auto-package-update-interval 4) ;; ... days
;;  (setq auto-package-update-delete-old-versions t)
;;  (setq auto-package-update-hide-results t)
;;  (auto-package-update-maybe))

;; Some platforms (cough) don't update Emacs's path.
;; Make them.
(when (eq system-type 'darwin)
  (use-package exec-path-from-shell
    :ensure t
    :init
................................................................................
  (load-file "~/.emacs.d/elfeed-config.el"))

;; A less shitty modeline:
(use-package doom-modeline
  :ensure t
  :init (doom-modeline-mode 1))









;; Markdown support:
(use-package markdown-mode
  :ensure t
  :commands (markdown-mode gfm-mode)
  :mode (("README\\.md\\'" . gfm-mode)
         ("\\.md\\'" . markdown-mode)
         ("\\.markdown\\'" . markdown-mode))
................................................................................
  :after ivy
  :config (counsel-mode))

;; Ivy for most interactive stuff:
(use-package ivy
  :ensure t
  :defer 0.1

  :bind (("C-c C-r" . ivy-resume)
         ("C-x B" . ivy-switch-buffer-other-window))
  :custom
  (ivy-count-format "(%d/%d) ")
  (ivy-use-virtual-buffers t)
  (ivy-virtual-abbreviate (quote full))
  :config (ivy-mode))
................................................................................
  (ivy-rich-mode 1)
  (setcdr (assq t ivy-format-functions-alist) #'ivy-format-function-line))

;; With icons:
(use-package all-the-icons-ivy-rich
  :ensure t
  :after ivy-rich
  :config
  (all-the-icons-ivy-rich-mode t))

;; Swiper for searching:
(use-package swiper
  :ensure t
  :after ivy
  :bind (("C-s" . swiper)
................................................................................

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(canlock-password "5e5c6fd080d6c0bce2d09b8ec6e3693c1a63c654")
 '(ivy-count-format "(%d/%d) " t)
 '(ivy-use-virtual-buffers t t)
 '(ivy-virtual-abbreviate (quote full) t))




(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

(provide 'init)
;;; init.el ends here