Skip to content

Commit

Permalink
emacs: eglot for c/cpp and theme change
Browse files Browse the repository at this point in the history
  • Loading branch information
niclas committed Apr 18, 2024
1 parent 3f92f53 commit 02c0efc
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .emacs.d/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
(unless (package-installed-p 'use-package)
(package-install 'use-package))

(setq custom-safe-themes t)

(require 'use-package)
(setq use-package-always-ensure t)

Expand Down Expand Up @@ -43,6 +45,11 @@
;; C
(setq c-default-style "linux")

(require 'eglot)
(add-to-list 'eglot-server-programs'((c++-mode c-mode) "clangd"))
(add-hook 'c-mode-hook 'eglot-ensure)
(add-hook 'c++-mode-hook 'eglot-ensure)

;; Go
(use-package go-mode
:mode "\\.go\\'")
Expand All @@ -67,7 +74,9 @@

(use-package yasnippet
:commands yas-minor-mode
:hook (go-mode . yas-minor-mode))
:hook '((c++-mode . yas-minor-mode)
(go-mode . yas-minor-mode)
(zig-mode . yas-minor-mode)))

;; Lua
(use-package lua-mode
Expand Down Expand Up @@ -95,17 +104,15 @@
(put 'upcase-region 'disabled nil)

;;; General Appearence
(use-package busybee-theme
:init (load-theme 'quasi-monochrome t))
(use-package mbo70s-theme
:init (load-theme 'mbo70s t))

(menu-bar-mode -1)
(scroll-bar-mode -1)
(tool-bar-mode -1)

(set-face-attribute 'default nil
:family "Go Mono"
; :family "IBM Plex Mono"
; :family "Space Mono"
:height 180)

(setq inhibit-startup-screen t)
Expand Down

0 comments on commit 02c0efc

Please sign in to comment.