From: Pavel SRB <srb@heckler-koch.cz>
To: help-gnu-emacs@gnu.org
Subject: text underline in html template for django
Date: Sat, 17 Nov 2007 18:49:57 +0100 [thread overview]
Message-ID: <473F29C5.5090900@heckler-koch.cz> (raw)
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
next reply other threads:[~2007-11-17 17:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-17 17:49 Pavel SRB [this message]
2007-11-18 12:05 ` text underline in html template for django Lennart Borgman (gmail)
2007-11-18 14:13 ` Pavel SRB
2007-11-20 17:59 ` Pavel SRB
2007-11-20 18:35 ` Lennart Borgman (gmail)
2007-11-20 19:41 ` Pavel SRB
2007-11-23 0:34 ` Lennart Borgman (gmail)
2007-11-23 7:50 ` Pavel SRB
2007-11-23 9:05 ` Lennart Borgman (gmail)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=473F29C5.5090900@heckler-koch.cz \
--to=srb@heckler-koch.cz \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).