Skip to content

Instantly share code, notes, and snippets.

@shiyuangu
shiyuangu / default-company-backends.el
Created June 7, 2021 23:40 — forked from kaz-yos/default-company-backends.el
Default emacs company-mode backends
(defcustom company-backends `(;; Emacs Lisp
;; In newer versions of Emacs, company-capf is used instead.
,@(unless (version< "24.3.51" emacs-version)
(list 'company-elisp))
;; BBDB https://www.emacswiki.org/emacs/CategoryBbdb
company-bbdb
;; nxml-mode
;; In Emacs >= 26, company-capf is used instead.
,@(unless (version<= "26" emacs-version)
(list 'company-nxml))
@shiyuangu
shiyuangu / init.el
Created June 3, 2021 01:46 — forked from Lukewh/init.el
20210215 - Emacs config for typescript and CRA
(eval-and-compile
(customize-set-variable
'package-archives '(("org" . "https://orgmode.org/elpa/")
("melpa" . "https://melpa.org/packages/")
("gnu" . "https://elpa.gnu.org/packages/")))
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package)))