Skip to content

Configuration setting for EMACS with lsp-mode #69

Answered by ZedThree
gnikit asked this question in Q&A
Discussion options

You must be logged in to vote

Here's the relevant bits from my .emacs config file. First bit is setting up the built-in package manager.

;; -*- mode: emacs-lisp; -*-

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Package manager stuff
(require 'package)

;; Do some basic hardening of the package system
;; See https://glyph.twistedmatrix.com/2015/11/editor-malware.html

;; Use https for packages
(setq package-archives
      '(("gnu" . "https://elpa.gnu.org/packages/")
        ("melpa" . "https://melpa.org/packages/")))

;; Always check certificates!
(setq tls-checktrust t)
;; Set trust roots
(let ((trustfile
       (replace-regexp-in-string
        "\\\\" "/"
        (replace-regexp-in-string
         "\n" ""

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gnikit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants