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
(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:
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.
GTD: Sched. 7x: TODO [#A] Do the thing
GTD: [0:15] Sched. 7x: TODO [#A] Do the thing
describe-variable (C-hv) for
org-agenda-prefix-format for more details on formatting options.