help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

text underline in html template for django


From: Pavel SRB
Subject: text underline in html template for django
Date: Sat, 17 Nov 2007 18:49:57 +0100
User-agent: Icedove 1.5.0.14pre (X11/20071018)

hi all

as all of you i am very happily writting code in emacs, in all bunch of modes. I just started to learn django, and i did not find solution for my problem anywhere.

In django we are writting html templates like this:

<html>
<head>
<title>Muzikanti z lekce 4</title>
</head>
<body>
<table>
{% for muzikant in people %}
<tr>
<td>
<b>
{{ muzikant.name }}
{% if muzikant.nemamezeru %}*{% endif %}
</b>
</td>
<td>
<i{% if muzikant.ma_duraz %} style="font-weight: bold;"{% endif %}>
{{ muzikant.genre }}
</i>
</td>
</tr>
{% endfor %}
</table>
</body>

My problem is that emacs, is underlining my code. As it is not happy with {}. I believe this is not matter of some mode, but some different settings as abbrev. Here is my dotEmacs.

(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(case-fold-search t)
'(current-language-environment "czech")
'(default-input-method "czech")
'(global-font-lock-mode t nil (font-lock)))
(custom-set-faces
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
)

(load "/home/conan/.emacs.d/nxml-mode-20041004/rng-auto.el")


(load "/usr/share/emacs21/site-lisp/xslide.el")
(load "/usr/share/emacs21/site-lisp/xslide-abbrev.el")
(load "/usr/share/emacs21/site-lisp/xslide-data.el")
(load "/usr/share/emacs21/site-lisp/xslide-font.el")
(load "/usr/share/emacs21/site-lisp/xslide-process.el")


(add-hook 'comint-output-filter-functions
'comint-watch-for-password-prompt)

(global-font-lock-mode t)

(setq auto-mode-alist
(append
(list
'("\\.xml$" . nxml-mode)
'("\\.xhtml$" . nxml-mode)
'("\\.html$" . nxml-mode)
'("\\.xsd$" . nxml-mode)
'("\\.rng$" . nxml-mode)
'("\\.kml$" . nxml-mode)
)
auto-mode-alist))

;; buffer switching
(require 'tabbar)
(global-set-key [(f9)] 'tabbar-mode)
(global-set-key [(f10)] 'tabbar-local-mode)
(global-set-key [(shift left)] 'tabbar-backward)
(global-set-key [(shift right)] 'tabbar-forward)

(set-language-environment "czech")
(set-input-method "czech-qwerty")
(prefer-coding-system 'utf-8)

(add-hook 'xsl-mode-hook 'turn-on-font-lock)

(autoload 'xsl-mode "xslide" "major mode for xsl stylesheets." t)

(setq auto-mode-alist
(append
(list
'("\\.xsl" . xsl-mode)
'("\\.xslt" . xsl-mode))
auto-mode-alist))

(add-hook 'xsl-mode-hook
'(lambda () (abbrev-mode 1)))




(setq load-path `("/home/conan/.emacs.d/python-mode-1.0/" . ,load-path))
(load-library "python-mode")
(setq auto-mode-alist
(cons '("\\.py$" . python-mode) auto-mode-alist))

(defun pocesti ()
""
(interactive)
(let ((beg (point)))
(beginning-of-buffer)
(replace-regexp "Å" "ř")
(replace-regexp "ÃÂ" "č")
(replace-regexp "á" "š")
(replace-regexp "ï" "ů")
(goto-char beg)
)
)

(setq-default abbrev-mode t)
(read-abbrev-file "~/.abbrev_defs")
(setq save-abbrevs t)

(custom-set-variables
'(transient-mark-mode nil)
'(pc-select-meta-moves-sexps t)
'(show-paren-delay 0.25)
'(show-paren-mode t nil (paren))
'(pc-select-selection-keys-only t)
'(column-number-mode t)
'(pc-selection-mode nil nil (pc-select))
'(visible-bell t))
(custom-set-faces
'(show-paren-match-face ((((class color)) (:bold t)))))

(setq-default indent-tabs-mode nil)

(desktop-load-default)
(desktop-read)

(setq scroll-step 1)

; ********** Haskell mode **********
(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
(add-hook 'haskell-mode-hook 'font-lock-mode)

(load "/usr/share/emacs/site-lisp/haskell-mode/haskell-site-file.el")

;;(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
;;(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
;;(add-hook 'haskell-mode-hook 'turn-on-haskell-simple-indent)


So please, what should i use to stop this?
Thank you very much for advice

Pavel SRB





reply via email to

[Prev in Thread] Current Thread [Next in Thread]