configurations: emacs default encoding
This commit is contained in:
parent
20ace25096
commit
d3d3397c23
|
@ -4,7 +4,7 @@
|
||||||
#+STARTUP: showeverything
|
#+STARTUP: showeverything
|
||||||
#+PROPERTY: header-args :tangle etc/materus/emacs-config.el
|
#+PROPERTY: header-args :tangle etc/materus/emacs-config.el
|
||||||
#+auto_tangle: t
|
#+auto_tangle: t
|
||||||
|
My emacs config, tangled file is [[file:etc/materus/emacs-config.el][there]]
|
||||||
* Table of Contents :TOC_3:
|
* Table of Contents :TOC_3:
|
||||||
- [[#init-files][Init Files]]
|
- [[#init-files][Init Files]]
|
||||||
- [[#early-init][Early Init]]
|
- [[#early-init][Early Init]]
|
||||||
|
@ -96,7 +96,7 @@ Early init file, setting for GC and some paths.
|
||||||
:header-args: :tangle init.el
|
:header-args: :tangle init.el
|
||||||
:END:
|
:END:
|
||||||
Init File
|
Init File
|
||||||
Checking if using emacs from nix package, loads config and custom.el
|
Checking if using emacs from my nix config (not used anymore, might use in future), loads config and custom.el
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq-default materus/use-nix-packages (require 'materus-config nil 'noerror))
|
(setq-default materus/use-nix-packages (require 'materus-config nil 'noerror))
|
||||||
(cua-mode 0) ; To load cua variables/functions but not set it up yet
|
(cua-mode 0) ; To load cua variables/functions but not set it up yet
|
||||||
|
@ -106,6 +106,7 @@ Checking if using emacs from nix package, loads config and custom.el
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Byte compile
|
** Byte compile
|
||||||
|
Byte compile files if not already.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(unless (file-exists-p (concat user-emacs-directory "etc/materus/emacs-config.elc"))
|
(unless (file-exists-p (concat user-emacs-directory "etc/materus/emacs-config.elc"))
|
||||||
(byte-compile-file (concat user-emacs-directory "etc/materus/emacs-config.el")))
|
(byte-compile-file (concat user-emacs-directory "etc/materus/emacs-config.el")))
|
||||||
|
@ -118,6 +119,7 @@ Checking if using emacs from nix package, loads config and custom.el
|
||||||
#+end_src
|
#+end_src
|
||||||
* Packages
|
* Packages
|
||||||
Package manager config. Nix not used for portability and easier control.
|
Package manager config. Nix not used for portability and easier control.
|
||||||
|
After some testing default package manager works best for me.
|
||||||
** Init
|
** Init
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(require 'cl-lib)
|
(require 'cl-lib)
|
||||||
|
@ -166,7 +168,6 @@ Packages to install
|
||||||
doom-modeline
|
doom-modeline
|
||||||
rainbow-delimiters
|
rainbow-delimiters
|
||||||
rainbow-mode
|
rainbow-mode
|
||||||
use-package
|
|
||||||
cmake-mode
|
cmake-mode
|
||||||
lsp-mode
|
lsp-mode
|
||||||
lsp-java
|
lsp-java
|
||||||
|
@ -224,6 +225,7 @@ Packages to install
|
||||||
eshell-vterm
|
eshell-vterm
|
||||||
empv
|
empv
|
||||||
volatile-highlights
|
volatile-highlights
|
||||||
|
highlight
|
||||||
)
|
)
|
||||||
"A list of packages to ensure are installed at launch.")
|
"A list of packages to ensure are installed at launch.")
|
||||||
|
|
||||||
|
@ -242,9 +244,9 @@ Packages to install
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
* Configuration
|
* Configuration
|
||||||
|
General configurations of packages modes etc.
|
||||||
** No Littering
|
** No Littering
|
||||||
Set up no littering
|
Set up no littering
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(require 'recentf)
|
(require 'recentf)
|
||||||
(use-package no-littering
|
(use-package no-littering
|
||||||
|
@ -405,10 +407,12 @@ Org mode settings
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
** Miscellaneous
|
** Miscellaneous
|
||||||
|
Other configs
|
||||||
*** Defaults
|
*** Defaults
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(electric-pair-mode 1)
|
(electric-pair-mode 1)
|
||||||
(electric-indent-mode 0)
|
(electric-indent-mode -1)
|
||||||
|
(setq-default buffer-file-coding-system 'utf-8-dos)
|
||||||
#+end_src
|
#+end_src
|
||||||
*** Elcord
|
*** Elcord
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|
|
@ -49,7 +49,6 @@
|
||||||
doom-modeline
|
doom-modeline
|
||||||
rainbow-delimiters
|
rainbow-delimiters
|
||||||
rainbow-mode
|
rainbow-mode
|
||||||
use-package
|
|
||||||
cmake-mode
|
cmake-mode
|
||||||
lsp-mode
|
lsp-mode
|
||||||
lsp-java
|
lsp-java
|
||||||
|
@ -107,6 +106,7 @@
|
||||||
eshell-vterm
|
eshell-vterm
|
||||||
empv
|
empv
|
||||||
volatile-highlights
|
volatile-highlights
|
||||||
|
highlight
|
||||||
)
|
)
|
||||||
"A list of packages to ensure are installed at launch.")
|
"A list of packages to ensure are installed at launch.")
|
||||||
|
|
||||||
|
@ -257,7 +257,8 @@
|
||||||
:init (global-company-mode 1))
|
:init (global-company-mode 1))
|
||||||
|
|
||||||
(electric-pair-mode 1)
|
(electric-pair-mode 1)
|
||||||
(electric-indent-mode 0)
|
(electric-indent-mode -1)
|
||||||
|
(setq-default buffer-file-coding-system 'utf-8-dos)
|
||||||
|
|
||||||
(defun materus/elcord-toggle (&optional _frame)
|
(defun materus/elcord-toggle (&optional _frame)
|
||||||
"Toggle elcord based on visible frames"
|
"Toggle elcord based on visible frames"
|
||||||
|
|
Loading…
Reference in New Issue