custom.el 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. (custom-set-variables
  2. ;; custom-set-variables was added by Custom.
  3. ;; If you edit it by hand, you could mess it up, so be careful.
  4. ;; Your init file should contain only one such instance.
  5. ;; If there is more than one, they won't work right.
  6. '(safe-local-variable-values
  7. '((eval progn
  8. (require 'lisp-mode)
  9. (defun emacs27-lisp-fill-paragraph
  10. (&optional justify)
  11. (interactive "P")
  12. (or
  13. (fill-comment-paragraph justify)
  14. (let
  15. ((paragraph-start
  16. (concat paragraph-start "\\|\\s-*\\([(;\"]\\|\\s-:\\|`(\\|#'(\\)"))
  17. (paragraph-separate
  18. (concat paragraph-separate "\\|\\s-*\".*[,\\.]$"))
  19. (fill-column
  20. (if
  21. (and
  22. (integerp emacs-lisp-docstring-fill-column)
  23. (derived-mode-p 'emacs-lisp-mode))
  24. emacs-lisp-docstring-fill-column fill-column)))
  25. (fill-paragraph justify))
  26. t))
  27. (setq-local fill-paragraph-function #'emacs27-lisp-fill-paragraph))
  28. (eval modify-syntax-entry 43 "'")
  29. (eval modify-syntax-entry 36 "'")
  30. (eval modify-syntax-entry 126 "'")
  31. (eval let
  32. ((root-dir-unexpanded
  33. (locate-dominating-file default-directory ".dir-locals.el")))
  34. (when root-dir-unexpanded
  35. (let*
  36. ((root-dir
  37. (expand-file-name root-dir-unexpanded))
  38. (root-dir*
  39. (directory-file-name root-dir)))
  40. (unless
  41. (boundp 'geiser-guile-load-path)
  42. (defvar geiser-guile-load-path 'nil))
  43. (make-local-variable 'geiser-guile-load-path)
  44. (require 'cl-lib)
  45. (cl-pushnew root-dir* geiser-guile-load-path :test #'string-equal))))
  46. (eval with-eval-after-load 'yasnippet
  47. (let
  48. ((guix-yasnippets
  49. (expand-file-name "etc/snippets/yas"
  50. (locate-dominating-file default-directory ".dir-locals.el"))))
  51. (unless
  52. (member guix-yasnippets yas-snippet-dirs)
  53. (add-to-list 'yas-snippet-dirs guix-yasnippets)
  54. (yas-reload-all))))
  55. (eval setq-local guix-directory
  56. (locate-dominating-file default-directory ".dir-locals.el"))
  57. (eval add-to-list 'completion-ignored-extensions ".go"))))
  58. (custom-set-faces
  59. ;; custom-set-faces was added by Custom.
  60. ;; If you edit it by hand, you could mess it up, so be careful.
  61. ;; Your init file should contain only one such instance.
  62. ;; If there is more than one, they won't work right.
  63. )
  64. (put 'narrow-to-region 'disabled nil)