Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2021-04-04 17:36:50 +02:00
parent b4e8857524
commit ffb7e19938
Signed by: y0rune
GPG Key ID: F204C385F57EB348
9 changed files with 80 additions and 11 deletions

View File

@ -61,6 +61,8 @@
(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)
(add-hook 'prog-mode-hook #'display-fill-column-indicator-mode)
; Global turn on flycheck ; Global turn on flycheck
(add-hook 'after-init-hook #'global-flycheck-mode) (add-hook 'after-init-hook #'global-flycheck-mode)
@ -139,6 +141,9 @@
) )
(global-company-mode) (global-company-mode)
(setq company-dabbrev-downcase 0)
(setq company-idle-delay 0)
;; Shell - bash ;; Shell - bash
(use-package flymake-shellcheck (use-package flymake-shellcheck
:ensure t :ensure t

View File

@ -0,0 +1,58 @@
;;; flycheck-yamllint.el --- Flycheck integration for YAMLLint
;; Copyright (c) 2017 Krzysztof Magosa
;; Author: Krzysztof Magosa <krzysztof@magosa.pl>
;; URL: https://github.com/krzysztof-magosa/flycheck-yamllint
;; Package-Requires: ((flycheck "30"))
;; Created: 25 March 2017
;; Version: 0.1.0
;; Keywords: convenience, languages, tools
;; Permission is hereby granted, free of charge, to any person obtaining a copy
;; of this software and associated documentation files (the "Software"), to deal
;; in the Software without restriction, including without limitation the rights
;; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
;; copies of the Software, and to permit persons to whom the Software is
;; furnished to do so, subject to the following conditions:
;; The above copyright notice and this permission notice shall be included in all
;; copies or substantial portions of the Software.
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
;; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
;; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
;; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
;; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
;; OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
;; SOFTWARE.
;;; Commentary:
;;
;;; Code:
(require 'flycheck)
(flycheck-def-config-file-var flycheck-yamllintrc yaml-yamllint ".yamllint"
:safe #'stringp)
(flycheck-define-checker yaml-yamllint
"A YAML syntax checker using YAMLLint.
See URL `https://github.com/adrienverge/yamllint'."
:command ("yamllint" "-f" "parsable" source (config-file "-c" flycheck-yamllintrc))
:error-patterns
((error line-start (file-name) ":" line ":" column ": [error] " (message) line-end)
(warning line-start (file-name) ":" line ":" column ": [warning] " (message) line-end))
:modes yaml-mode)
;;;###autoload
(defun flycheck-yamllint-setup ()
"Setup Flycheck YAMLLint integration."
(interactive)
(add-to-list 'flycheck-checkers 'yaml-yamllint))
(provide 'flycheck-yamllint)
;;; flycheck-yamllint.el ends here

View File

@ -1,13 +1,13 @@
;; ----- smex-history ----- ;; ----- smex-history -----
( (
display-fill-column-indicator-mode
run-python
whitespace-mode
shell
package-install package-install
ido-mode treemacs
customize-themes
avy-isearch
load-theme load-theme
delete-rectangle
kill-rectangle
) )
;; ----- smex-data ----- ;; ----- smex-data -----
@ -31,7 +31,7 @@
(ruby-indent-line . 1) (ruby-indent-line . 1)
(ruby-mode-menu . 1) (ruby-mode-menu . 1)
(inf-ruby-console-auto . 8) (inf-ruby-console-auto . 8)
(shell . 6) (shell . 7)
(package-install-selected-packages . 1) (package-install-selected-packages . 1)
(package-install . 2) (package-install . 2)
(compile . 2) (compile . 2)
@ -49,4 +49,9 @@
(avy-isearch . 1) (avy-isearch . 1)
(customize-themes . 1) (customize-themes . 1)
(ido-mode . 1) (ido-mode . 1)
(lsp-describe-session . 1)
(whitespace-mode . 2)
(python-shell-switch-to-shell . 1)
(run-python . 1)
(display-fill-column-indicator-mode . 3)
) )

1
.gitignore vendored
View File

@ -35,6 +35,7 @@
.cert/ .cert/
.swt/ .swt/
.smb .smb
.emacs.d/ido.last
.recently-used .recently-used
.eclipse/ .eclipse/
.emacs.d/.dap-breakpoints .emacs.d/.dap-breakpoints

View File

@ -1,4 +1,4 @@
#!/usr/lib/python-exec/python3.7/python #!/usr/lib/python-exec/python3.8/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import re import re
import sys import sys

View File

@ -1,4 +1,4 @@
#!/usr/lib/python-exec/python3.7/python #!/usr/lib/python-exec/python3.8/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import re import re
import sys import sys

View File

@ -1,4 +1,4 @@
#!/usr/lib/python-exec/python3.7/python #!/usr/lib/python-exec/python3.8/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import re import re
import sys import sys

View File

@ -1,4 +1,4 @@
#!/usr/lib/python-exec/python3.7/python #!/usr/lib/python-exec/python3.8/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import re import re
import sys import sys

View File

@ -1,4 +1,4 @@
#!/usr/lib/python-exec/python3.7/python #!/usr/lib/python-exec/python3.8/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import re import re
import sys import sys