mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
The highlight-indent-guides package seems to have a cursor movement bug with some modes, and makefile-mode is one of them. Also Makefiles are tab indented, and the indentation highlight replaces the tab character symbol, making it difficult to properly understand the indentation level.
26 lines
542 B
EmacsLisp
26 lines
542 B
EmacsLisp
;;; siren-makefile.el --- jimeh's Emacs Siren: makefile-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for makefile-mode.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-display-indentation)
|
|
|
|
(use-package make-mode
|
|
:straight (:type built-in)
|
|
:hook
|
|
(makefile-mode . siren-makefile-mode-setup)
|
|
|
|
:init
|
|
(add-to-list 'siren-indent-sensitive-modes 'makefile-mode)
|
|
|
|
(defun siren-makefile-mode-setup ()
|
|
(subword-mode +1)
|
|
(siren-display-indentation -1)
|
|
(setq tab-width 4)))
|
|
|
|
(provide 'siren-makefile)
|
|
;;; siren-makefile.el ends here
|