<commit_before>
(mapc 'my/install-package '(lua-mode))

(use-package lua-mode
  :mode "\\.lua\\'"
  :interpreter "lua"
  :init
  (progn
    (define-minor-mode love-mode
      "Buffer local minor mode for evil-org"
      :init-value nil
      :lighter " <3"
      :keymap (make-sparse-keymap) ; defines love-mode-map
      :group lua)

    (define-key love-mode-map (kbd "s-b")
      (lambda() (shell-command (concat "love " default-directory))))

    (add-hook 'lua-mode-hook
              (lambda()
                (if (string-match "\\.love/.+\\.lua" default-directory)
                    (love-mode t))

                (nmap lua-mode-map (kbd "s-r")
                      (lambda() (interactive) (shell-command-on-region (point-min) (point-max) "lua")))
                (vmap lua-mode-map (kbd "s-r")
                      (lambda() (interactive) (shell-command-on-region (region-beginning) (region-end) "lua")))

                ))))

;;
(provide 'mod-love)<commit_msg>mod-love: better love2D support<commit_after>
(mapc 'my/install-package '(lua-mode))

(use-package lua-mode
  :mode "\\.lua\\'"
  :interpreter "lua"
  :init
  (progn
    (define-minor-mode love-mode
      "Buffer local minor mode for evil-org"
      :init-value nil
      :lighter " <3"
      :keymap (make-sparse-keymap) ; defines love-mode-map
      :group lua)

    (define-key love-mode-map (kbd "s-b")
        (lambda() (interactive) (shell-command (concat "open -a love.app " default-directory))))

    (add-hook 'lua-mode-hook
        (lambda()
          (if (string-match "\\.love/.+\\.lua\\'" (buffer-file-name))
              (love-mode t))

          (nmap lua-mode-map (kbd "s-r")
                (lambda() (interactive) (shell-command-on-region (point-min) (point-max) "lua")))
          (vmap lua-mode-map (kbd "s-r")
                (lambda() (interactive) (shell-command-on-region (region-beginning) (region-end) "lua")))
          ))))

;;
(provide 'mod-love)
{'fraction_non_alphanumeric': 0.17837006663249616, 'fraction_numerical': 0.0015376729882111738, 'mean_word_length': 2.078864353312303, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '572056', 'n_tokens_mistral': 699, 'n_tokens_neox': 666, 'n_words': 145}