From ffb7e19938c21c500c1fafc4f028f5c206c35b47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 4 Apr 2021 17:36:50 +0200 Subject: [PATCH] Added MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .emacs.d/init.el | 5 +++ .emacs.d/plugins/flycheck-yamllint.el | 58 +++++++++++++++++++++++++++ .emacs.d/smex-items | 17 +++++--- .gitignore | 1 + .local/bin/epylint | 2 +- .local/bin/isort | 2 +- .local/bin/pylint | 2 +- .local/bin/pyreverse | 2 +- .local/bin/symilar | 2 +- 9 files changed, 80 insertions(+), 11 deletions(-) create mode 100644 .emacs.d/plugins/flycheck-yamllint.el diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 0cc0b94..0451ee0 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -61,6 +61,8 @@ (add-hook 'text-mode-hook 'auto-fill-mode) (setq-default fill-column 80) +(add-hook 'prog-mode-hook #'display-fill-column-indicator-mode) + ; Global turn on flycheck (add-hook 'after-init-hook #'global-flycheck-mode) @@ -139,6 +141,9 @@ ) (global-company-mode) +(setq company-dabbrev-downcase 0) +(setq company-idle-delay 0) + ;; Shell - bash (use-package flymake-shellcheck :ensure t diff --git a/.emacs.d/plugins/flycheck-yamllint.el b/.emacs.d/plugins/flycheck-yamllint.el new file mode 100644 index 0000000..266a40d --- /dev/null +++ b/.emacs.d/plugins/flycheck-yamllint.el @@ -0,0 +1,58 @@ +;;; flycheck-yamllint.el --- Flycheck integration for YAMLLint + +;; Copyright (c) 2017 Krzysztof Magosa + +;; Author: Krzysztof Magosa +;; 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 diff --git a/.emacs.d/smex-items b/.emacs.d/smex-items index e0042eb..5eca9a4 100644 --- a/.emacs.d/smex-items +++ b/.emacs.d/smex-items @@ -1,13 +1,13 @@ ;; ----- smex-history ----- ( + display-fill-column-indicator-mode + run-python + whitespace-mode + shell package-install - ido-mode - customize-themes - avy-isearch + treemacs load-theme - delete-rectangle - kill-rectangle ) ;; ----- smex-data ----- @@ -31,7 +31,7 @@ (ruby-indent-line . 1) (ruby-mode-menu . 1) (inf-ruby-console-auto . 8) - (shell . 6) + (shell . 7) (package-install-selected-packages . 1) (package-install . 2) (compile . 2) @@ -49,4 +49,9 @@ (avy-isearch . 1) (customize-themes . 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) ) diff --git a/.gitignore b/.gitignore index 8ad7ea6..77c9d9c 100644 --- a/.gitignore +++ b/.gitignore @@ -35,6 +35,7 @@ .cert/ .swt/ .smb +.emacs.d/ido.last .recently-used .eclipse/ .emacs.d/.dap-breakpoints diff --git a/.local/bin/epylint b/.local/bin/epylint index 93a57fa..0b2afde 100755 --- a/.local/bin/epylint +++ b/.local/bin/epylint @@ -1,4 +1,4 @@ -#!/usr/lib/python-exec/python3.7/python +#!/usr/lib/python-exec/python3.8/python # -*- coding: utf-8 -*- import re import sys diff --git a/.local/bin/isort b/.local/bin/isort index 348d6c4..3d47e68 100755 --- a/.local/bin/isort +++ b/.local/bin/isort @@ -1,4 +1,4 @@ -#!/usr/lib/python-exec/python3.7/python +#!/usr/lib/python-exec/python3.8/python # -*- coding: utf-8 -*- import re import sys diff --git a/.local/bin/pylint b/.local/bin/pylint index 3ec7b9e..f9af060 100755 --- a/.local/bin/pylint +++ b/.local/bin/pylint @@ -1,4 +1,4 @@ -#!/usr/lib/python-exec/python3.7/python +#!/usr/lib/python-exec/python3.8/python # -*- coding: utf-8 -*- import re import sys diff --git a/.local/bin/pyreverse b/.local/bin/pyreverse index e498454..2ffd7e9 100755 --- a/.local/bin/pyreverse +++ b/.local/bin/pyreverse @@ -1,4 +1,4 @@ -#!/usr/lib/python-exec/python3.7/python +#!/usr/lib/python-exec/python3.8/python # -*- coding: utf-8 -*- import re import sys diff --git a/.local/bin/symilar b/.local/bin/symilar index 400edba..08c9c21 100755 --- a/.local/bin/symilar +++ b/.local/bin/symilar @@ -1,4 +1,4 @@ -#!/usr/lib/python-exec/python3.7/python +#!/usr/lib/python-exec/python3.8/python # -*- coding: utf-8 -*- import re import sys