Add bas econfig for emacs
This commit is contained in:
parent
2c0a7e2734
commit
d6211d7db5
1 changed files with 60 additions and 0 deletions
|
@ -497,6 +497,66 @@ write_files:
|
|||
cd ..
|
||||
rm -rf emacs
|
||||
|
||||
- path: /home/cl/.emacs.d/init.el
|
||||
owner: cl:cl
|
||||
defer: True
|
||||
content: |
|
||||
(setq package-archives
|
||||
'(("melpa" . "https://melpa.org/packages/")
|
||||
("org" . "https://orgmode.org/elpa/")
|
||||
("elpa" . "https://elpa.gnu.org/packages/")
|
||||
("nongnu" . "https://elpa.nongnu.org/nongnu/")))
|
||||
(package-initialize)
|
||||
(unless package-archive-contents
|
||||
(package-refresh-contents))
|
||||
(unless (package-installed-p 'use-package)
|
||||
(package-install 'use-package))
|
||||
(require 'use-package)
|
||||
(setq use-package-always-ensure t)
|
||||
(tool-bar-mode -1)
|
||||
(menu-bar-mode -1)
|
||||
(show-paren-mode 1)
|
||||
(global-hl-line-mode 1)
|
||||
(display-time-mode 1)
|
||||
(global-prettify-symbols-mode -1)
|
||||
(prefer-coding-system 'utf-8-unix)
|
||||
(set-default-coding-systems 'utf-8-unix)
|
||||
(set-terminal-coding-system 'utf-8)
|
||||
(set-keyboard-coding-system 'utf-8)
|
||||
(setq display-time-format "W%V %a %d %b %R")
|
||||
(setq display-time-24hr-format t)
|
||||
(setq default-buffer-file-coding-system 'utf-8-unix)
|
||||
(setq indent-tabs-mode nil)
|
||||
(setq line-spacing nil)
|
||||
(setq make-backup-files nil)
|
||||
(setq tab-width 4)
|
||||
(setq sentence-end-double-space nil)
|
||||
(setq next-line-add-newlines t)
|
||||
(setq require-final-newline t)
|
||||
(require 'ido)
|
||||
(setq ido-enable-flex-matching t)
|
||||
(setq ido-everywhere t)
|
||||
(setq ido-create-new-buffer 'always)
|
||||
(setq default-major-mode 'text-mode)
|
||||
(setq inhibit-startup-buffer-menu t inhibit-startup-screen t)
|
||||
(put 'narrow-to-region 'disabled nil)
|
||||
(put 'narrow-to-page 'disabled nil)
|
||||
(add-hook 'text-mode-hook 'turn-on-auto-fill)
|
||||
(defalias 'yes-or-no-p 'y-or-n-p)
|
||||
(add-hook 'after-save-hook
|
||||
'executable-make-buffer-file-executable-if-script-p)
|
||||
(global-set-key (kbd "M-i") 'imenu)
|
||||
(global-set-key (kbd "C-x C-b") 'ibuffer-list-buffers)
|
||||
(add-hook 'diary-display-hook 'fancy-diary-display)
|
||||
(add-hook 'today-visible-calendar-hook 'calendar-mark-today)
|
||||
(add-hook 'write-file-hooks 'delete-trailing-whitespace)
|
||||
(add-hook 'diary-list-entries-hook 'diary-include-other-diary-files)
|
||||
(add-hook 'diary-mark-entries-hook 'diary-mark-included-diary-files)
|
||||
(setq compilation-ask-about-save nil)
|
||||
(setq vc-handled-backends '(Git Hg)) ;; Only use Git and Hg for VC
|
||||
(ido-mode t)
|
||||
(fido-mode 1)
|
||||
|
||||
runcmd:
|
||||
# Run Certbot to obtain SSL certificates and configure Nginx
|
||||
- certbot certonly --nginx -d u1.metalisp.dev --non-interactive --agree-tos --email marcus.kammer@mailbox.org --redirect
|
||||
|
|
Loading…
Add table
Reference in a new issue