Skip to content

Commit

Permalink
[emacs] Fix Emacs library formatting (#76110)
Browse files Browse the repository at this point in the history
This makes it easier to ship/install these using the builtin Emacs
package format (in particular, a Version is required).
  • Loading branch information
darkfeline committed Jan 10, 2024
1 parent 78cf2c0 commit 5b4abae
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
;;; clang-include-fixer.el --- Emacs integration of the clang include fixer -*- lexical-binding: t; -*-

;; Version: 0.1.0
;; Keywords: tools, c
;; Package-Requires: ((cl-lib "0.5") (json "1.2") (let-alist "1.0.4"))

Expand Down
1 change: 1 addition & 0 deletions clang/tools/clang-format/clang-format.el
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
;;; clang-format.el --- Format code using clang-format -*- lexical-binding: t; -*-

;; Version: 0.1.0
;; Keywords: tools, c
;; Package-Requires: ((cl-lib "0.3"))
;; SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Expand Down
1 change: 1 addition & 0 deletions clang/tools/clang-rename/clang-rename.el
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
;;; clang-rename.el --- Renames every occurrence of a symbol found at <offset>. -*- lexical-binding: t; -*-

;; Version: 0.1.0
;; Keywords: tools, c

;;; Commentary:
Expand Down
1 change: 1 addition & 0 deletions llvm/utils/emacs/tablegen-mode.el
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
;;; tablegen-mode.el --- Major mode for TableGen description files (part of LLVM project)

;; Maintainer: The LLVM team, http://llvm.org/
;; Version: 1.0

;;; Commentary:
;; A major mode for TableGen description files in LLVM.
Expand Down
2 changes: 2 additions & 0 deletions mlir/utils/emacs/mlir-lsp-client.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
;; See the License for the specific language governing permissions and
;; limitations under the License.

;; Version: 0.1.0

;;; Commentary:

;; LSP clinet to use with `mlir-mode' that uses `mlir-lsp-server' or any
Expand Down
3 changes: 2 additions & 1 deletion mlir/utils/emacs/mlir-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
;; See the License for the specific language governing permissions and
;; limitations under the License.

;; Version: 0.1.0

;;; Commentary:

;; Major mode for editing MLIR files.
Expand Down Expand Up @@ -96,5 +98,4 @@
(add-to-list 'auto-mode-alist (cons "\\.mlirbc\\'" 'mlir-mode))

(provide 'mlir-mode)

;;; mlir-mode.el ends here

0 comments on commit 5b4abae

Please sign in to comment.