I've installed the easylist package and am using it just fine. I've tried to create a custom command to shorten my typing as I've done before with the regular \begin{itemize}.
My regular one that works is:
\newcommand{\itml}[1]{\begin{itemize} #1 \end{itemize}}
I use like this:
\itml{
\item first item
\item second item
}
The one that does not work:
\newcommand{\el}[1]{\begin{easylist}[itemize] #1 \end{easylist}}
When used as:
\el{
# first item
## second item
}
I get the following error:
! You can't use `macro parameter character #' in vertical mode.
<argument> ##
first item #### Second item
l.44 }
What actually does work is:
\newcommand{\bel}{\begin{easylist}[itemize]}
\newcommand{\eel}{\end{easylist}}
When used as:
\bel
# first item
## second item
\eel
Basically, I don't want to type the closing tag?
UPDATE: I have all of my custom commands in a separate file like so:
% commands.tex file
\newcommand{\avgE}{\bar{E}}
...
\newcommand{\bel}{\begin{easylist}[itemize]}
\newcommand{\eel}{\end{easylist}}
\newcommand{\el@aux}[1]{\begin{easylist}[itemize] #1 \end{easylist}\endgroup}
\newcommand{\el}{\begingroup\Activate\el@aux}
\newcommand{\bl}[1]{\bel #1 \eel}
\newcommand{\itml}[1]{\begin{itemize} #1 \end{itemize}}
And in my regular files, I say:
% regular latex file
\documentclass[11pt,letterpaper]{article}
...
\input{../src/commands.tex}
....
When trying it in my regular file I get the following error:
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.25 ...list}[itemize] #1 \end{easylist}\endgroup}
Does that mean I have to declare these custom commands in each "regular" file and cant put it in just one place for all files?

\el{..}definition), the modification of catcodes byeasylistno longer has an effect. Within the environment-form, no argument is gobbled and therefore the output works... – Werner Jun 18 '13 at 00:58easylistworks, I'd have to go with\belsolution as opposed to the\elsolution? If so, you can answer the question and I'll accept! – Diego Jun 18 '13 at 01:02