In Mavericks and prior, one could use the following commands to pin the dock to either the top or bottom corner of the screen, if the dock was placed left/right, or to the left/right corners if the dock was placed at the bottom, by using the following commands:
defaults write com.apple.dock pinning -string start
defaults write com.apple.dock pinning -string end
This is followed by
killall Dock to restart the Dock. Now, in Yosemite, it appears that this option has been removed. Is there no way to get back this functionality in Yosemite?
Update: This is still not possible in El Capitan. Very disappointed in Apple.