.dotfiles

Check-in [8d9b5a82ea]
Login

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

Overview
Comment:Emacs: I migrated from MacPorts to pkgsrc. Also, vterms don't flicker anymore.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8d9b5a82eaf1462cfe8da5e3577d9222e0eb80786d3cfb5a1e7baf26cd8019b7
User & Date: Cthulhux 2020-06-17 00:44:13
Context
2020-06-17
00:45
tcsh displays the current machine name now. Useful for not getting confused over SSH. check-in: 23589508b5 user: Cthulhux tags: trunk
00:44
Emacs: I migrated from MacPorts to pkgsrc. Also, vterms don't flicker anymore. check-in: 8d9b5a82ea user: Cthulhux tags: trunk
2020-06-01
14:51
Goodbye, OpenBSD configuration. check-in: feeafcf59c user: Cthulhux tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to emacs/init.el.

192
193
194
195
196
197
198

199
200
201
202
203
204
205
...
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
...
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
...
418
419
420
421
422
423
424
425




426
427
428
429
430
431
432
  :ensure t)

;; Support my blog as well:
(use-package org2blog
  :ensure t
  :config
  (setq org2blog/wp-show-post-in-browser t)

  ;; Keep the log-in data out of the public eye:
  (load-file "~/.emacs.d/org2blog-config.el"))

;; Preview HTML:
(use-package org-preview-html
  :ensure t
  :after org
................................................................................

;; Lisp programming:
;; Use SLY as a CL subsystem.
(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") ":"))
      (setenv "PATH" (concat "/opt/local/go/bin:" (getenv "PATH"))))
    (setenv "GOPATH" (concat (getenv "HOME") "/go"))
    (setq gofmt-command (concat (getenv "GOPATH") "/bin/goimports"))))

;; Language Server Protocol:
(use-package lsp-mode
  :ensure t
  :commands (lsp lsp-deferred)
................................................................................

;; 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))
................................................................................
  :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")







>







 







|
|







 







|
|







 







|
<
<
<







 







|
>
>
>
>







192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
...
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
...
348
349
350
351
352
353
354
355



356
357
358
359
360
361
362
...
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
  :ensure t)

;; Support my blog as well:
(use-package org2blog
  :ensure t
  :config
  (setq org2blog/wp-show-post-in-browser t)
  (setq org2blog/wp-image-upload t)
  ;; Keep the log-in data out of the public eye:
  (load-file "~/.emacs.d/org2blog-config.el"))

;; Preview HTML:
(use-package org-preview-html
  :ensure t
  :after org
................................................................................

;; Lisp programming:
;; Use SLY as a CL subsystem.
(use-package sly
  :ensure t
  :config
  (when (eq system-type 'darwin)
    ;; Requires SBCL from pkgsrc.
    (setq inferior-lisp-program "/opt/pkg/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/pkg/go114/bin" (split-string (getenv "PATH") ":"))
      (setenv "PATH" (concat "/opt/pkg/go114/bin:" (getenv "PATH"))))
    (setenv "GOPATH" (concat (getenv "HOME") "/go"))
    (setq gofmt-command (concat (getenv "GOPATH") "/bin/goimports"))))

;; Language Server Protocol:
(use-package lsp-mode
  :ensure t
  :commands (lsp lsp-deferred)
................................................................................

;; 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))




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

;; vterm instead of Emacs's terminal:
(use-package vterm
  :ensure t
  :config
  ;; Disable the highlighting of the current line
  ;; for the virtual terminal:
  (add-hook 'vterm-mode-hook (lambda () (setq-local global-hl-line-mode nil))))

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

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