Compare commits

..

3 Commits

4 changed files with 32 additions and 17 deletions

View File

@@ -21,8 +21,6 @@
"Configuración para el hook de 'org-mode'."
(display-line-numbers-mode 0)
(visual-line-mode 1)
(visual-fill-column-mode 1)
;; Configuracin para Systanx Highlight en porg-blocks
(add-to-list 'org-src-lang-modes (cons "html" 'mhtml))
@@ -88,7 +86,8 @@
(use-package org
:ensure nil
:hook
(org-mode . kj/org-hook)
((org-mode . kj/org-hook)
(org-mode . visual-line-fill-column-mode))
:config
(setq org-ellipsis "")
(setq org-hide-emphasis-markers t)
@@ -119,8 +118,8 @@
;; Tachar los checkbox marcados como terminados
(defface org-checkbox-done-text
'((t (:foreground "#71696A" :strike-through t)))
"Face for the text part of a checked org-mode checkbox.")
'((t (:foreground "#71696A" :strike-through t)))
"Face for the text part of a checked org-mode checkbox.")
(font-lock-add-keywords
'org-mode

View File

@@ -25,6 +25,8 @@
:bind ([f9] . dired-sidebar-toggle-sidebar)
:commands (dired-sidebar-toggle-sidebar)
:config
;; Show directories first
(setq dired-listing-switches "-la --group-directories-first")
(setq dired-sidebar-theme 'nerd
dired-sidebar-window-fixed nil
;; dired-sidebar-should-follow-file t

View File

@@ -32,18 +32,8 @@
(use-package php-cs-fixer
:custom
(php-cs-fixer-rules-level-part-options (list (json-encode '(("@PSR12" . t)
("ordered_imports" . (("sort_algorithm" . "alpha")))
("concat_space" . (("spacing" . "one")))
("whitespace_after_comma_in_array" . t)
("align_multiline_comment" . t)
("no_unused_imports" . t)
("phpdoc_align" . t)
("phpdoc_indent" . t)
("no_useless_return" . t)
("return_assignment" . t)
("trailing_comma_in_multiline" . t)))))
(php-cs-fixer-rules-fixer-part-options '())
(php-cs-fixer-config-option (expand-file-name
(concat user-emacs-directory "php-cs-fixer-config")))
;; :hook (before-save . php-cs-fixer-before-save)
)

24
php-cs-fixer-config Normal file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/php
<?php
error_reporting(E_ALL);
$finder = \PhpCsFixer\Finder::create();
$config = new \PhpCsFixer\Config();
$config->setRules([
'@PSR12' => true,
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'concat_space' => ['spacing' => 'one'],
'whitespace_after_comma_in_array' => true,
'align_multiline_comment' => true,
'no_unused_imports' => true,
'phpdoc_align' => true,
'phpdoc_indent' => true,
// 'psr_autoloading' => true,
'no_useless_return' => true,
'return_assignment' => true,
'trailing_comma_in_multiline' => true,
])->setRiskyAllowed(true);
return $config->setFinder($finder);