Skip to content

Commit

Permalink
Rename existing function set-major-mode -> set-major-mode-from-name
Browse files Browse the repository at this point in the history
  • Loading branch information
10sr committed Sep 24, 2018
1 parent 813f9b5 commit eedc429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editorconfig.el
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ TRIM-TRAILING-WS."
(and parent
(editorconfig--is-a-mode-p parent want)))))

(defun editorconfig-set-major-mode (filetype)
(defun editorconfig-set-major-mode-from-name (filetype)
"Set buffer `major-mode' by FILETYPE.
FILETYPE should be s string like `\"ini\"`, if not nil or empty string."
Expand Down Expand Up @@ -600,7 +600,7 @@ applies available properties."
(editorconfig-set-trailing-nl (gethash 'insert_final_newline props))
(editorconfig-set-trailing-ws (gethash 'trim_trailing_whitespace props))
(editorconfig-set-line-length (gethash 'max_line_length props))
(editorconfig-set-major-mode (gethash 'file_type_emacs props))
(editorconfig-set-major-mode-from-name (gethash 'file_type_emacs props))
(editorconfig-set-major-mode-from-ext (gethash 'file_type_ext props))
(condition-case err
(run-hook-with-args 'editorconfig-custom-hooks props)
Expand Down

0 comments on commit eedc429

Please sign in to comment.