I don't know how to get it in to both normal view and the agenda view. But, in case it's helpful, one simple way to get effort into headlines in to the agenda view at least, is to edit org-agenda-prefix-format
.
(Also with this, you are restricted as to where exactly you can place the effort indicator. The prefix is everything before the headline itself, so you can't put the effort after TODO for example).
That said, here is how I do it:
M-x customize-variable
Customize variable: org-agenda-prefix-format
Look specifically for the agenda
value. The default value of this is:
%i %-12:c%?-12t% s
I have changed it to:
%i %-12:c%?-12t [%-4e] % s
It's the [%-4e] that adds in the effort indicator.
So,
GTD: Sched. 7x: TODO [#A] Do the thing
becomes
GTD: [0:15] Sched. 7x: TODO [#A] Do the thing
See describe-variable
(C-hv) for org-agenda-prefix-format
for more details on formatting options.