.dotfiles

Check-in [05a6d8c88a]
Login

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

Overview
Comment:Emacs: Added vterm, ccls, js2-mode, neotree, and switch-window.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 05a6d8c88a5bb9253ae6ad8e05f326b8b68f8c70b926c3cb6b1d85efadf29e9e
User & Date: Cthulhux 2020-06-01 14:41:44
Context
2020-06-01
14:49
tcsh config: initial checkin check-in: ae510ca3c3 user: Cthulhux tags: trunk
14:41
Emacs: Added vterm, ccls, js2-mode, neotree, and switch-window. check-in: 05a6d8c88a user: Cthulhux tags: trunk
2020-05-31
17:25
Emacs: Moved to org-mode from Git; explicitly fetching vc-fossil check-in: e010fe2600 user: Cthulhux tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to emacs/init.el.

157
158
159
160
161
162
163


























164
165
166
167
168
169
170
...
238
239
240
241
242
243
244
245


246
247
248
249
250
251
252
...
275
276
277
278
279
280
281







282
283
284
285
286
287
288
...
306
307
308
309
310
311
312











313
314
315
316
317
318
319
...
369
370
371
372
373
374
375




376
377
378
379
380
381
382
(use-package async
  :ensure t)

;; Gopher:
(use-package gopher
  :ensure t)



























;; Support org-mode import from a website:
(use-package org-web-tools
  :ensure t)

;; Support my blog as well:
(use-package org2blog
  :ensure t
................................................................................
  (define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)
  (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map))

;; Syntax checking:
(use-package flycheck
  :ensure t
  :config
  (add-hook 'after-init-hook #'global-flycheck-mode))



;; Enable some icons throughout Emacs:
(use-package all-the-icons
  :ensure t)

(use-package all-the-icons-dired
  :after all-the-icons
................................................................................
(use-package sly
  :ensure t
  :config
  (when (eq system-type 'darwin)
    ;; Requires SBCL from MacPorts.
    (setq inferior-lisp-program "/opt/local/bin/sbcl")))








;; Go programming:
;; Install and set up the Go mode.
(use-package go-mode
  :ensure t
  :config
  (progn
    (unless (member "/opt/local/go/bin" (split-string (getenv "PATH") ":"))
................................................................................
(add-hook 'go-mode-hook #'lsp-go-install-save-hooks)
(add-hook 'perl-mode-hook #'lsp-go-install-save-hooks)

(use-package lsp-ui
  :ensure t
  :commands lsp-ui-mode)












;; Company auto-completion for code:
(use-package company
  :ensure t
  :config
  (setq company-idle-delay 0)
  (setq company-minimum-prefix-length 1))

................................................................................

;; Smart parentheses:
(use-package smartparens
  :ensure t
  :config
  (require 'smartparens-config)
  (smartparens-global-mode t))





;; Version Control enhancements:
(use-package darcsum
  :ensure t)

(use-package vc-fossil
  :straight (:host github :branch "trunk")







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







 







|
>
>







 







>
>
>
>
>
>
>







 







>
>
>
>
>
>
>
>
>
>
>







 







>
>
>
>







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
...
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
...
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
...
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
...
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
(use-package async
  :ensure t)

;; Gopher:
(use-package gopher
  :ensure t)

;; File tree:
(use-package neotree
  :ensure t
  :config
  (global-set-key [f8] 'neotree-toggle))

;; Switch and split windows visually:
(use-package switch-window
  :ensure t
  :config
  (global-set-key (kbd "C-x o") 'switch-window)
  (global-set-key (kbd "C-x 1") 'switch-window-then-maximize)
  (global-set-key (kbd "C-x 2") 'switch-window-then-split-below)
  (global-set-key (kbd "C-x 3") 'switch-window-then-split-right)
  (global-set-key (kbd "C-x 0") 'switch-window-then-delete)

  (global-set-key (kbd "C-x 4 d") 'switch-window-then-dired)
  (global-set-key (kbd "C-x 4 f") 'switch-window-then-find-file)
  (global-set-key (kbd "C-x 4 m") 'switch-window-then-compose-mail)
  (global-set-key (kbd "C-x 4 r") 'switch-window-then-find-file-read-only)

  (global-set-key (kbd "C-x 4 C-f") 'switch-window-then-find-file)
  (global-set-key (kbd "C-x 4 C-o") 'switch-window-then-display-buffer)

  (global-set-key (kbd "C-x 4 0") 'switch-window-then-kill-buffer))

;; Support org-mode import from a website:
(use-package org-web-tools
  :ensure t)

;; Support my blog as well:
(use-package org2blog
  :ensure t
................................................................................
  (define-key projectile-mode-map (kbd "s-p") 'projectile-command-map)
  (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map))

;; Syntax checking:
(use-package flycheck
  :ensure t
  :config
  (add-hook 'after-init-hook #'global-flycheck-mode)
  ;; We use ccls instead, so we won't need this:
  (setq-default flycheck-disabled-checkers '(c/c++-clang c/c++-cppcheck c/c++-gcc)))

;; Enable some icons throughout Emacs:
(use-package all-the-icons
  :ensure t)

(use-package all-the-icons-dired
  :after all-the-icons
................................................................................
(use-package sly
  :ensure t
  :config
  (when (eq system-type 'darwin)
    ;; Requires SBCL from MacPorts.
    (setq inferior-lisp-program "/opt/local/bin/sbcl")))

;; JS programming:
;; Use a less bad JavaScript mode.
(use-package js2-mode
  :ensure t
  :config
  (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode)))

;; Go programming:
;; Install and set up the Go mode.
(use-package go-mode
  :ensure t
  :config
  (progn
    (unless (member "/opt/local/go/bin" (split-string (getenv "PATH") ":"))
................................................................................
(add-hook 'go-mode-hook #'lsp-go-install-save-hooks)
(add-hook 'perl-mode-hook #'lsp-go-install-save-hooks)

(use-package lsp-ui
  :ensure t
  :commands lsp-ui-mode)

;; C/C++ programming:
(use-package ccls
  :ensure t
  :hook ((c-mode c++-mode objc-mode cuda-mode) .
         (lambda () (require 'ccls) (lsp)))
  :config
  (setq lsp-prefer-flymake nil)
  (when (eq system-type 'darwin)
    ;; Requires ccls-clang-9.0 from MacPorts.
    (setq ccls-executable "/opt/local/bin/ccls-clang-9.0")))

;; Company auto-completion for code:
(use-package company
  :ensure t
  :config
  (setq company-idle-delay 0)
  (setq company-minimum-prefix-length 1))

................................................................................

;; Smart parentheses:
(use-package smartparens
  :ensure t
  :config
  (require 'smartparens-config)
  (smartparens-global-mode t))

;; vterm instead of Emacs's terminal:
(use-package vterm
  :ensure t)

;; Version Control enhancements:
(use-package darcsum
  :ensure t)

(use-package vc-fossil
  :straight (:host github :branch "trunk")