Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2020-12-23 21:36:34 +01:00
parent 43bea81ba7
commit fce73acdfc
Signed by: y0rune
GPG Key ID: F204C385F57EB348
4 changed files with 72 additions and 36 deletions

View File

@ -5,11 +5,11 @@
(setq package-enable-at-startup nil) (setq package-enable-at-startup nil)
(setq package-archives (setq package-archives
'( '(
("ELPA" . "http://tromey.com/elpa/") ("ELPA" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/") ("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/") ("melpa" . "https://melpa.org/packages/")
("ORG" . "https://orgmode.org/elpa/") ("ORG" . "https://orgmode.org/elpa/")
) )
) )
(package-initialize) (package-initialize)
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3") (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
@ -27,6 +27,10 @@
;; Remove working cl ;; Remove working cl
(require 'cl-lib) (require 'cl-lib)
(setq byte-compile-warnings '(cl-functions)) (setq byte-compile-warnings '(cl-functions))
(advice-add 'sh-set-shell :around
(lambda (orig-fun &rest args)
(cl-letf (((symbol-function 'message) #'ignore))
(apply orig-fun args))))
;; install use-package ;; install use-package
(unless (package-installed-p 'use-package) (unless (package-installed-p 'use-package)
@ -55,10 +59,15 @@
(add-hook 'text-mode-hook 'auto-fill-mode) (add-hook 'text-mode-hook 'auto-fill-mode)
(setq-default fill-column 80) (setq-default fill-column 80)
; Global turn on flycheck
(add-hook 'after-init-hook #'global-flycheck-mode)
; Org Files
(add-hook 'org-mode-hook '(lambda () (setq fill-column 80))) (add-hook 'org-mode-hook '(lambda () (setq fill-column 80)))
(add-hook 'org-mode-hook 'auto-fill-mode) (add-hook 'org-mode-hook 'auto-fill-mode)
(add-hook 'org-mode-hook 'turn-on-flyspell) (add-hook 'org-mode-hook 'turn-on-flyspell)
;; Broswer ;; Broswer
(setq browse-url-browser-function 'browse-url-generic (setq browse-url-browser-function 'browse-url-generic
browse-url-generic-program "browser-x") browse-url-generic-program "browser-x")
@ -85,7 +94,6 @@
(if (condition-case nil (require 'mozc)(error nil)) (if (condition-case nil (require 'mozc)(error nil))
(setq ecb-be-more-like-better-yes-p t) (setq ecb-be-more-like-better-yes-p t)
(message "Monz not available; not configuring") ) (message "Monz not available; not configuring") )
;(require 'mozc)
(setq default-input-method "japanese-mozc") (setq default-input-method "japanese-mozc")
;; Enable Smex ;; Enable Smex
@ -120,24 +128,26 @@
(use-package company (use-package company
:ensure t :ensure t
) )
(require 'company)
(global-company-mode) (global-company-mode)
;; Shell ;; Shell - bash
(add-hook 'sh-mode-hook 'company-mode) (use-package flymake-shellcheck
:ensure t
)
(use-package flycheck-bashate
:ensure t
)
;; Latex (require 'bash-completion)
;(eval-after-load 'company (bash-completion-setup)
; '(push 'company-robe company-backends))
;; Ruby (use-package flymake-shell
;(eval-after-load 'auto-complete :ensure t
; '(add-to-list 'ac-modes 'inf-ruby-mode)) )
;(add-hook 'inf-ruby-mode-hook 'ac-inf-ruby-enable)
;(eval-after-load 'inf-ruby ' (require 'flymake-shell)
; '(define-key inf-ruby-mode-map (kbd "TAB") 'auto-complete)) (add-hook 'sh-set-shell-hook 'flymake-shell-load)
;; Theme ;; Theme
(use-package dracula-theme (use-package dracula-theme
@ -160,28 +170,22 @@
) )
(global-set-key (kbd "C-x g") 'magit-status) (global-set-key (kbd "C-x g") 'magit-status)
;; ruby sorce code ;; Helpers for easily building Emacs flymake checkers.
(use-package flymake-ruby
:ensure t
:config
)
(use-package flymake-easy (use-package flymake-easy
:ensure t :ensure t
:config :config
) )
;;robe
(use-package robe
:ensure t
:config
)
;; Error list ;; Error list
(define-key flymake-mode-map (kbd "M-n") 'flymake-goto-next-error) (define-key flymake-mode-map (kbd "M-n") 'flymake-goto-next-error)
(define-key flymake-mode-map (kbd "M-p") 'flymake-goto-prev-error) (define-key flymake-mode-map (kbd "M-p") 'flymake-goto-prev-error)
;; Ruby ;; Ruby
(use-package flymake-ruby
:ensure t
:config
)
(require 'robe) (require 'robe)
(add-hook 'ruby-mode-hook 'robe-mode) (add-hook 'ruby-mode-hook 'robe-mode)
(add-hook 'robe-mode-hook 'ac-robe-setup) (add-hook 'robe-mode-hook 'ac-robe-setup)
@ -189,6 +193,12 @@
(require 'flymake-ruby) (require 'flymake-ruby)
(add-hook 'ruby-mode-hook 'flymake-ruby-load) (add-hook 'ruby-mode-hook 'flymake-ruby-load)
;;robe
(use-package robe
:ensure t
:config
)
;; Docker ;; Docker
(use-package dockerfile-mode (use-package dockerfile-mode
:ensure t :ensure t
@ -205,12 +215,38 @@
:config :config
) )
;; Ansible
(use-package ansible
:ensure t
:config
)
(use-package ansible-doc
:ensure t
:config
)
(use-package company-ansible
:ensure t
:config
)
(add-to-list 'company-backends 'company-ansible)
(add-hook 'yaml-mode-hook '(lambda () (ansible 1)))
(add-hook 'yaml-mode-hook #'ansible-doc-mode)
;; Markdown-mode ;; Markdown-mode
(use-package markdown-mode (use-package markdown-mode
:ensure t :ensure t
:config :config
) )
;; Apache
(use-package apache-mode
:ensure t
:config
)
;; Livedown ;; Livedown
;;; sudo npm install -g livedown ;;; sudo npm install -g livedown
;;; (add-to-list 'load-path (expand-file-name "~/.emacs.d/emacs-livedown")) ;;; (add-to-list 'load-path (expand-file-name "~/.emacs.d/emacs-livedown"))
@ -248,9 +284,6 @@
;; no "bell" (audible notification): ;; no "bell" (audible notification):
(setq ring-bell-function 'ignore) (setq ring-bell-function 'ignore)
;; highlight:
;(global-hl-line-mode 1)
;; auto reloading (reverting) buffers ;; auto reloading (reverting) buffers
(global-auto-revert-mode 1) (global-auto-revert-mode 1)

3
.signature Normal file
View File

@ -0,0 +1,3 @@
Regards,
Marcin Woźniak
https://yorune.pl

View File

@ -18,8 +18,8 @@ xautolock -time 15 -locker slock&
nm-applet --sm-disable& nm-applet --sm-disable&
#sudo /root/.local/bin/protonvpn c -f& #sudo /root/.local/bin/protonvpn c -f&
dunst -config& dunst -config&
#browser-x& browser-x&
#QT_SCALE_FACTOR=1.5 keepassxc & QT_SCALE_FACTOR=1.5 keepassxc &
/usr/local/bin/st -e /bin/sh -c "tmux new-session -s BASE -n HOME '/bin/zsh'\; split-window 'htop'\; new-window -n MAIL 'neomutt'\; new-window -n NEWSBOAT 'newsboat -r '\; new-window -n MUSIC 'cmus'"& /usr/local/bin/st -e /bin/sh -c "tmux new-session -s BASE -n HOME '/bin/zsh'\; split-window 'htop'\; new-window -n MAIL 'neomutt'\; new-window -n NEWSBOAT 'newsboat -r '\; new-window -n MUSIC 'cmus'"&
#(sleep 30 && getforecast)& #(sleep 30 && getforecast)&
sudo /usr/bin/rdate -s ntp.task.gda.pl && sudo /sbin/hwclock --systohc sudo /usr/bin/rdate -s ntp.task.gda.pl && sudo /sbin/hwclock --systohc