I'm very new to GNU Emacs. I use GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2022-05-31. Here is my ~/.emacs file.
(setq-default tab-width 4)
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(custom-set-variables
'(package-selected-packages '(php-mode ligature))
'(tool-bar-mode nil))
(custom-set-faces
'(default ((t (:family "Fira Code" :foundry "CTDB" :slant normal :weight normal :height 128 :width normal)))))
(require 'ligature)
;; Enable the www ligature in every possible major mode
(ligature-set-ligatures t '("www"))
;; Enable ligatures in programming modes
(ligature-set-ligatures 'prog-mode '("www" "**" "***" "**/" "*>" "*/" "\\\\" "\\\\\\" "{-" "::"
":::" ":=" "!!" "!=" "!==" "-}" "----" "-->" "->" "->>"
"-<" "-<<" "-~" "#{" "#[" "##" "###" "####" "#(" "#?" "#_"
"#_(" ".-" ".=" ".." "..<" "..." "?=" "??" ";;" "/*" "/**"
"/=" "/==" "/>" "//" "///" "&&" "||" "||=" "|=" "|>" "^=" "$>"
"++" "+++" "+>" "=:=" "==" "===" "==>" "=>" "=>>" "<="
"=<<" "=/=" ">-" ">=" ">=>" ">>" ">>-" ">>=" ">>>" "<*"
"<*>" "<|" "<|>" "<$" "<$>" "<!--" "<-" "<--" "<->" "<+"
"<+>" "<=" "<==" "<=>" "<=<" "<>" "<<" "<<-" "<<=" "<<<"
"<~" "<~~" "</" "</>" "~@" "~-" "~>" "~~" "~~>" "%%"))
(global-ligature-mode 't)
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/catppuccin")
(load-theme 'catppuccin t)
(setq catppuccin-flavor 'macchiato) ;; 'frappe or 'latte, 'macchiato, or 'mocha
(catppuccin-reload)
;; This happens with this active or inactive
;; php-mode
;;(use-package php-mode
;; :commands php-mode
;; :mode "\\.php\\'")
There seems to be a problem with quotes and syntax highlighting. I did a few google searches but I couldn't find anything that would solve my problem, tried turning php-mode on and off. I don't know what my next step should be.
Reopening the file seems to temporary fix it.
emacs -Q
and then loadphp-mode.elc
manually viaM-x load-file
(i.e. without any of the rest of your config), do you see the same thing?emacs -Q -L /home/razvbir/.emacs.d/elpa/php-mode-20230212.731 -l php-mode